1 | <?php |
||
9 | class MutableBlock implements MutableBlockInterface |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $id; |
||
13 | /** @var string[] */ |
||
14 | private $attributes = []; |
||
15 | /** @var BlockTypeInterface */ |
||
16 | private $blockType; |
||
17 | |||
18 | /** |
||
19 | * @param string[] $attributes |
||
20 | */ |
||
21 | public function __construct(BlockTypeInterface $blockType, array $attributes) |
||
28 | |||
29 | public function getId(): string |
||
33 | |||
34 | /** |
||
35 | * @throws Exception\UnknownAttributeException |
||
36 | */ |
||
37 | public function getAttribute(string $name): string |
||
44 | |||
45 | public function setAttribute(string $name, ?string $value): void |
||
54 | |||
55 | public function getTypeName(): string |
||
59 | } |
||
60 |