| 1 | <?php |
||
| 10 | trait ImageRemoveTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $itemId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Image |
||
| 19 | */ |
||
| 20 | protected $image; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $id |
||
| 24 | * @param Image $image |
||
| 25 | */ |
||
| 26 | public function __construct($id, Image $image) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getItemId() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return Image |
||
| 42 | */ |
||
| 43 | public function getImage() |
||
| 47 | |||
| 48 | public function serialize() |
||
| 55 | |||
| 56 | public static function deserialize(array $data) |
||
| 63 | } |
||
| 64 |