| 1 | <?php |
||
| 10 | class Product extends AbstractModel |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Title |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | * @db |
||
| 17 | * @validate NotEmpty |
||
| 18 | */ |
||
| 19 | protected $title; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Description |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | * @db |
||
| 26 | * @enableRichText |
||
| 27 | */ |
||
| 28 | protected $description; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Media |
||
| 32 | * |
||
| 33 | * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> |
||
| 34 | * @db |
||
| 35 | */ |
||
| 36 | protected $media; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get title |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getTitle() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set title |
||
| 50 | * |
||
| 51 | * @param string $title |
||
| 52 | */ |
||
| 53 | public function setTitle($title) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get description |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getDescription() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Set description |
||
| 70 | * |
||
| 71 | * @param string $description |
||
| 72 | */ |
||
| 73 | public function setDescription($description) |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Get media |
||
| 80 | * |
||
| 81 | * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage |
||
| 82 | */ |
||
| 83 | public function getMedia() |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Set media |
||
| 90 | * |
||
| 91 | * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $media |
||
| 92 | */ |
||
| 93 | public function setMedia($media) |
||
| 97 | } |
||
| 98 |