| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | final class BlockNotPresentException extends InvalidArgumentException implements ExceptionInterface |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | private $block; |
||
| 15 | |||
| 16 | /** @var array */ |
||
| 17 | private $definedBlocks; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | private $template; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @throws StringsException |
||
| 24 | */ |
||
| 25 | public function __construct(string $block, array $definedBlocks, string $template) |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getBlock(): string |
||
| 42 | { |
||
| 43 | return $this->block; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getDefinedBlocks(): array |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getTemplate(): string |
||
| 56 |