| 1 | <?php |
||
| 14 | class RecordEvent extends EntityEvent |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var CommandInterface |
||
| 18 | */ |
||
| 19 | private $command; |
||
| 20 | |||
| 21 | public function __construct(EntityInterface $entity, CommandInterface $command) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Indication that command is contextual (i.e. have mutable data). |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function isContextual(): bool |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return CommandInterface |
||
| 39 | */ |
||
| 40 | public function getCommand(): CommandInterface |
||
| 44 | } |