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