| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 8 | public function __construct( |
|
| 24 | LoaderResolverInterface $resolver, |
||
| 25 | array $resources = [], |
||
| 26 | MethodCollection $collection = null) |
||
| 27 | { |
||
| 28 | 8 | $this->collection = $collection; |
|
| 29 | |||
| 30 | 8 | if (null === $this->collection) { |
|
| 31 | $this->collection = new MethodCollection(); |
||
| 32 | } |
||
| 33 | |||
| 34 | 8 | foreach ($resources as $resource) { |
|
| 35 | 8 | $this->collection->addCollection($resolver->resolve($resource)->load($resource)); |
|
| 36 | 8 | } |
|
| 37 | 8 | } |
|
| 38 | |||
| 47 |