| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function __construct($attributes) |
||
| 21 | { |
||
| 22 | parent::__construct($attributes); |
||
| 23 | |||
| 24 | if (isset($attributes['templates']) && is_array($attributes['templates'])) { |
||
| 25 | $templates = new Collection; |
||
| 26 | foreach ($attributes['templates'] as $template) { |
||
| 27 | $templates->push(new Fluent($template)); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->templates = $templates; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |