| 1 | <?php |
||
| 21 | trait ImageTrait |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Id of the image set. |
||
| 25 | * |
||
| 26 | * @ODM\Field(type="string") |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $belongsTo; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Key name in the set. |
||
| 33 | * |
||
| 34 | * @ODM\Field |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $key; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $imageSetId |
||
| 41 | * |
||
| 42 | * @return self |
||
| 43 | */ |
||
| 44 | public function setBelongsTo($imageSetId) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function belongsTo() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $key |
||
| 61 | * |
||
| 62 | * @return self |
||
| 63 | */ |
||
| 64 | public function setKey($key) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getKey() |
||
| 78 | } |
||
| 79 |