Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
25 | public function __construct(string $block, array $definedBlocks, string $template) |
||
26 | { |
||
27 | $this->block = $block; |
||
28 | $this->definedBlocks = $definedBlocks; |
||
29 | $this->template = $template; |
||
30 | |||
31 | $message = sprintf( |
||
32 | 'The block "%s" is not present in the defined blocks ["%s"] of your template %s', |
||
33 | $this->block, |
||
34 | implode('", "', $this->definedBlocks), |
||
35 | $this->template |
||
36 | ); |
||
37 | |||
38 | parent::__construct($message); |
||
39 | } |
||
56 |