| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class InvalidStyle extends \RuntimeException |
||
| 10 | { |
||
| 11 | public static function unregisteredStyle(string $styleClass) : self |
||
| 12 | { |
||
| 13 | return new self("Style class: '$styleClass' is not registered"); |
||
| 14 | } |
||
| 15 | |||
| 16 | public static function notSubClassOf(string $styleClass) : self |
||
| 17 | { |
||
| 18 | return new self("Style instance must be a subclass of: '$styleClass'"); |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function unregisteredItem(string $itemClass) : self |
||
| 24 | } |
||
| 25 | } |
||
| 26 |