Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 0 |
1 | <?php |
||
19 | final class AttributesInline extends AbstractInline |
||
20 | { |
||
21 | /** @var array<string, mixed> */ |
||
22 | private array $attributes; |
||
23 | |||
24 | private bool $block; |
||
25 | |||
26 | /** |
||
27 | * @param array<string, mixed> $attributes |
||
28 | */ |
||
29 | 18 | public function __construct(array $attributes, bool $block) |
|
30 | { |
||
31 | 18 | parent::__construct(); |
|
32 | |||
33 | 18 | $this->attributes = $attributes; |
|
34 | 18 | $this->block = $block; |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return array<string, mixed> |
||
39 | */ |
||
40 | 18 | public function getAttributes(): array |
|
41 | { |
||
42 | 18 | return $this->attributes; |
|
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param array<string, mixed> $attributes |
||
47 | */ |
||
48 | public function setAttributes(array $attributes): void |
||
51 | } |
||
52 | |||
53 | 16 | public function isBlock(): bool |
|
56 | } |
||
57 | } |
||
58 |