| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function __construct(array $attributes = []) |
||
| 41 | { |
||
| 42 | parent::__construct('div'); |
||
| 43 | |||
| 44 | if (isset($attributes[ 'id' ])) { |
||
| 45 | $this->entity->setEntityName($attributes[ 'id' ]); |
||
| 46 | } |
||
| 47 | |||
| 48 | if (count($attributes)) { |
||
| 49 | foreach ($attributes as $name => $value) { |
||
| 50 | $this->attributes->addAttribute($name, $value); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | $this->menu = new Sidebar\Menu(); |
||
| 55 | |||
| 56 | $this->childNodes->push($this->menu); |
||
| 57 | } |
||
| 58 | } |