| 1 | <?php |
||
| 11 | final class EditCommand implements Command |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var mixed |
||
| 15 | */ |
||
| 16 | private $entity; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var ChangeSet |
||
| 20 | */ |
||
| 21 | private $changeSet; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $entity |
||
| 25 | * @param ChangeSet $changeSet |
||
| 26 | * @throws InvalidArgumentException |
||
| 27 | */ |
||
| 28 | public function __construct($entity, ChangeSet $changeSet) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return mixed |
||
| 40 | * |
||
| 41 | * @api |
||
| 42 | */ |
||
| 43 | public function getEntity() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return ChangeSet |
||
| 50 | * |
||
| 51 | * @api |
||
| 52 | */ |
||
| 53 | public function getChanges() |
||
| 57 | } |
||
| 58 |