1 | <?php |
||
24 | class Slideshow implements SlideshowInterface |
||
25 | { |
||
26 | use TimestampableTrait, SoftDeletableTrait; |
||
27 | |||
28 | /** |
||
29 | * @var string|null |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $code; |
||
37 | |||
38 | /** |
||
39 | * @var ArticleInterface|null |
||
40 | */ |
||
41 | protected $article; |
||
42 | |||
43 | /** |
||
44 | * @var Collection |
||
45 | */ |
||
46 | protected $items; |
||
47 | |||
48 | public function __construct() |
||
52 | |||
53 | public function getId() |
||
57 | |||
58 | public function getCode(): string |
||
62 | |||
63 | public function setCode(string $code): void |
||
67 | |||
68 | public function getArticle(): ?ArticleInterface |
||
72 | |||
73 | public function setArticle(?ArticleInterface $article): void |
||
77 | |||
78 | public function getItems(): Collection |
||
82 | |||
83 | public function setItems(Collection $items): void |
||
87 | |||
88 | public function addItem(SlideshowItemInterface $item): void |
||
95 | |||
96 | public function hasItem(SlideshowItemInterface $item): bool |
||
100 | } |
||
101 |