Total Complexity | 5 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class DocumentOptionsStore |
||
24 | { |
||
25 | private $attributes = []; |
||
26 | |||
27 | public function __construct(array $attributes = []) |
||
28 | { |
||
29 | $this->attributes = $attributes; |
||
30 | } |
||
31 | |||
32 | public function addAttribute($name, $value) |
||
33 | { |
||
34 | if (is_bool($value)) { |
||
35 | $value = $value ? 'true' : 'false'; |
||
36 | } |
||
37 | $this->attributes[$name] = $value; |
||
38 | } |
||
39 | |||
40 | public function getAttributes() |
||
43 | } |
||
44 | } |
||
45 |