Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
8 / 8
DefaultBundle
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
8 / 8
8
100.00% covered (success)
100.00%
8 / 8
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 httpProcessor
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 routeResolver
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 templateLocator
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 ormConfig
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 ormWrappers
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 webRoot
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildBuilder
100.00% covered (success)
100.00%
1 / 1
1  
 
<?php
namespace PHPixie;
use PHPixie\Bundles\Bundle\Provides;
abstract class DefaultBundle implements Provides\HTTPProcessor,
    Provides\ORM,
    Provides\RouteResolver,
    Provides\TemplateLocator,
    Provides\WebRoot
{
    protected $builder;
    
    public function __construct($frameworkBuilder)
    {
        $this->builder = $this->buildBuilder($frameworkBuilder);
    }
    
    public function httpProcessor()
    {
        return $this->builder->httpProcessor();
    }
    
    public function routeResolver()
    {
        return $this->builder->routeResolver();
    }
    
    public function templateLocator()
    {
        return $this->builder->templateLocator();
    }
    
    public function ormConfig()
    {
        return $this->builder->ormConfig();
    }
        
    public function ormWrappers()
    {
        return $this->builder->ormWrappers();
    }
    
    public function webRoot()
    {
        return $this->builder->webRoot();
    }
    
    abstract protected function buildBuilder($frameworkBuilder);
}