Total Complexity | 5 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Source |
||
15 | { |
||
16 | /** |
||
17 | * @var integer |
||
18 | * |
||
19 | * @ORM\Column(name="id", type="integer") |
||
20 | * @ORM\Id |
||
21 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @Assert\Length(min="2", max="50") |
||
29 | * @ORM\Column(name="label", type="string", nullable=false) |
||
30 | */ |
||
31 | private $label; |
||
32 | |||
33 | /** |
||
34 | * Get id |
||
35 | * |
||
36 | * @return integer |
||
37 | */ |
||
38 | public function getId() |
||
39 | { |
||
40 | return $this->id; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Set id |
||
45 | * |
||
46 | * @param int $id |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function setId($id) |
||
50 | { |
||
51 | $this->id = $id; |
||
52 | |||
53 | return $this; |
||
54 | } |
||
55 | |||
56 | |||
57 | /** |
||
58 | * @param string $label |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function setLabel($label) |
||
62 | { |
||
63 | $this->label = $label; |
||
64 | |||
65 | return $this; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getLabel() |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function __toString() |
||
82 | } |
||
83 | } |
||
84 |