| 1 | <?php |
||
| 15 | class RecordEvent extends EntityEvent |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var CommandInterface |
||
| 19 | */ |
||
| 20 | private $command; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param EntityInterface $entity |
||
| 24 | * @param CommandInterface $command |
||
| 25 | */ |
||
| 26 | public function __construct(EntityInterface $entity, CommandInterface $command) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Indication that command is contextual (i.e. have mutable data). |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function isContextual(): bool |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return CommandInterface |
||
| 44 | */ |
||
| 45 | public function getCommand(): CommandInterface |
||
| 49 | } |
||
| 50 |