1 | <?php |
||
15 | class ReleaseDateQueue |
||
16 | { |
||
17 | /** |
||
18 | * @ORM\Id() |
||
19 | * @ORM\GeneratedValue() |
||
20 | * @ORM\Column(type="integer") |
||
21 | * @Groups({"list", "view"}) |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @ORM\OneToOne(targetEntity="App\Movies\Entity\Movie") |
||
27 | * @ORM\JoinColumn(nullable=false) |
||
28 | * @Groups({"list", "view"}) |
||
29 | */ |
||
30 | private $movie; |
||
31 | |||
32 | /** |
||
33 | * @Groups({"list", "view"}) |
||
34 | * @ORM\Column(type="date", nullable=true) |
||
35 | */ |
||
36 | private $addedAt; |
||
37 | |||
38 | /** |
||
39 | * @Groups({"list", "view"}) |
||
40 | * @ORM\Column(type="integer", nullable=false, options={"default": 1}) |
||
41 | */ |
||
42 | private $isActive; |
||
43 | |||
44 | public function __construct(Movie $movie) |
||
53 | |||
54 | public function getId(): int |
||
58 | |||
59 | public function getMovie(): Movie |
||
63 | |||
64 | public function getAddedAt(): \DateTimeInterface |
||
68 | |||
69 | public function activate() |
||
73 | |||
74 | public function isActive(): bool |
||
78 | } |
||
79 |