1 | <?php |
||
14 | class TagElement |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | * |
||
19 | * @ORM\Column(type="integer") |
||
20 | * @ORM\Id |
||
21 | * @ORM\GeneratedValue(strategy="AUTO") |
||
22 | */ |
||
23 | protected $id; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @Assert\NotBlank |
||
29 | * @ORM\Column(type="string", length=255) |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var Tag |
||
35 | * |
||
36 | * @ORM\ManyToOne(targetEntity="Tag", inversedBy="elements") |
||
37 | */ |
||
38 | protected $tag; |
||
39 | |||
40 | public function getId(): ?int |
||
44 | |||
45 | public function getName(): ?string |
||
49 | |||
50 | public function setName(?string $name) |
||
54 | |||
55 | public function getTag(): ?Tag |
||
59 | |||
60 | public function setTag(?Tag $tag): void |
||
64 | } |
||
65 |