Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
10 / 10 |
CRAP | |
100.00% |
11 / 11 |
| Bundles | |
100.00% |
1 / 1 |
|
100.00% |
10 / 10 |
10 | |
100.00% |
11 / 11 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| builder | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| registry | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| bundles | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| get | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| httpProcessors | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| templateLocators | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| routeResolvers | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| orm | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| buildBuilder | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace PHPixie; | |
| class Bundles | |
| { | |
| protected $builder; | |
| public function __construct($bundleRegistry) | |
| { | |
| $this->builder = $this->buildBuilder($bundleRegistry); | |
| } | |
| public function builder() | |
| { | |
| return $this->builder; | |
| } | |
| public function registry() | |
| { | |
| return $this->builder->registry(); | |
| } | |
| public function bundles() | |
| { | |
| return $this->builder->registry()->bundles(); | |
| } | |
| public function get($name) | |
| { | |
| return $this->builder->registry()->get($name); | |
| } | |
| public function httpProcessors() | |
| { | |
| return $this->builder->httpProcessors(); | |
| } | |
| public function templateLocators() | |
| { | |
| return $this->builder->templateLocators(); | |
| } | |
| public function routeResolvers() | |
| { | |
| return $this->builder->routeResolvers(); | |
| } | |
| public function orm() | |
| { | |
| return $this->builder->orm(); | |
| } | |
| protected function buildBuilder($slice) | |
| { | |
| return new Bundles\Builder($slice); | |
| } | |
| } |