Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
44 | public function __construct(string $name, array $arguments = [], ?Scope $parent = null) |
||
45 | { |
||
46 | $this->name = $name; |
||
47 | $this->parent = $parent; |
||
48 | // Resolve arguments |
||
49 | foreach ($arguments as $argument) { |
||
50 | if (is_string($argument)) { |
||
51 | $this->elements[] = new Text($argument, false); |
||
52 | } elseif (is_array($argument)) { |
||
53 | $this->attributes = $argument; |
||
54 | } |
||
58 |