1 | <?php |
||
14 | abstract class GalleryItem implements GalleryItemInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var MediaInterface |
||
18 | */ |
||
19 | protected $media; |
||
20 | |||
21 | /** |
||
22 | * @var GalleryInterface |
||
23 | */ |
||
24 | protected $gallery; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $position; |
||
30 | |||
31 | /** |
||
32 | * @var \DateTime |
||
33 | */ |
||
34 | protected $updatedAt; |
||
35 | |||
36 | /** |
||
37 | * @var \DateTime |
||
38 | */ |
||
39 | protected $createdAt; |
||
40 | |||
41 | /** |
||
42 | * @var bool |
||
43 | */ |
||
44 | protected $enabled; |
||
45 | |||
46 | /** |
||
47 | * Construct. |
||
48 | */ |
||
49 | public function __construct() |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function __toString() |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function setCreatedAt(\DateTime $createdAt = null) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function getCreatedAt() |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function setEnabled($enabled) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function getEnabled() |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function setGallery(GalleryInterface $gallery = null) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function getGallery() |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function setMedia(MediaInterface $media = null) |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function getMedia() |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function setPosition($position) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function getPosition() |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | public function setUpdatedAt(\DateTime $updatedAt = null) |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | public function getUpdatedAt() |
||
158 | } |
||
159 |