Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class IncompatibleClass extends RuntimeException |
||
13 | { |
||
14 | private const MESSAGE = 'Class "%s" must implement the "%s" interface in order to %s domain events.'; |
||
15 | |||
16 | 2 | public static function forExpellingEvents(object $instance) : self |
|
17 | { |
||
18 | 2 | return new self(sprintf(self::MESSAGE, get_class($instance), EventAware::class, 'expel')); |
|
19 | } |
||
20 | |||
21 | 2 | public static function forTriggeringEvents(object $instance) : self |
|
24 | } |
||
25 | } |
||
26 |