Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
8 / 8
Builder
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
7 / 7
7
100.00% covered (success)
100.00%
8 / 8
 configuration
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 bundles
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildComponents
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildAssets
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
 buildConfiguration
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildBundles
100.00% covered (success)
100.00%
1 / 1
1  
 
 getRootDirectory
100.00% covered (success)
100.00%
1 / 1
1  
 
<?php
namespace PHPixie\BundleFramework;
abstract class Builder extends \PHPixie\Framework\Builder
{
    public function configuration()
    {
        return $this->instance('configuration');
    }
    
    public function bundles()
    {
        return $this->instance('bundles');
    }
    
    protected function buildComponents()
    {
        return new Components($this);
    }
    
    protected function buildAssets()
    {
        return new Assets(
            $this->components(),
            $this->getRootDirectory()
        );
    }
    
    protected function buildConfiguration()
    {
        return new Configuration($this);
    }
    
    abstract protected function buildBundles();
    abstract protected function getRootDirectory();
}