1 | <?php |
||
13 | class EditableMediaWrapper extends AbstractEntity |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\ManyToOne(targetEntity="Kunstmaan\MediaBundle\Entity\Media", cascade={"persist"}) |
||
17 | * @ORM\JoinColumn(name="media_id", referencedColumnName="id") |
||
18 | * @Assert\NotNull() |
||
19 | */ |
||
20 | private $media; |
||
21 | |||
22 | /** |
||
23 | * @ORM\Column(name="runtime_config", type="text", nullable=true) |
||
24 | */ |
||
25 | private $runTimeConfig; |
||
26 | |||
27 | public function getMedia(): ?Media |
||
31 | |||
32 | public function setMedia(Media $media): EditableMediaWrapper |
||
38 | |||
39 | public function getRunTimeConfig() |
||
43 | |||
44 | public function setRunTimeConfig($runTimeConfig): EditableMediaWrapper |
||
50 | } |
||
51 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.