Conditions | 5 |
Paths | 8 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function __construct($identifier, $header=NULL, $metas=array(), $description=NULL) { |
||
13 | parent::__construct($identifier, array ()); |
||
14 | if (isset($header)) { |
||
15 | $this->setHeader($header); |
||
16 | } |
||
17 | if (\is_array($metas)) { |
||
18 | foreach ( $metas as $meta ) { |
||
19 | $this->addMeta($meta); |
||
20 | } |
||
21 | } else |
||
22 | $this->addMeta($metas); |
||
23 | if (isset($description)) { |
||
24 | $this->setDescription($description); |
||
25 | } |
||
26 | } |
||
27 | |||
46 | } |