1 | <?php |
||
29 | class ZoneStorage |
||
30 | { |
||
31 | /** |
||
32 | * @var int $zsId Id of the storage area |
||
33 | * |
||
34 | * @ORM\Column(name="id", type="integer") |
||
35 | * @ORM\Id |
||
36 | * @ORM\GeneratedValue(strategy="AUTO") |
||
37 | */ |
||
38 | private $zsId; |
||
39 | |||
40 | /** |
||
41 | * @var string $name Name of the storage area |
||
42 | * |
||
43 | * @ORM\Column(name="name", type="string", length=255) |
||
44 | */ |
||
45 | private $name; |
||
46 | |||
47 | /** |
||
48 | * @var string $slug Slug name |
||
49 | * @Gedmo\Slug(fields={"name"}) |
||
50 | * @ORM\Column(length=128, unique=true) |
||
51 | */ |
||
52 | private $slug; |
||
53 | |||
54 | /** |
||
55 | * Get id. |
||
56 | * |
||
57 | * @return int |
||
58 | */ |
||
59 | public function getId() |
||
63 | |||
64 | /** |
||
65 | * Set name. |
||
66 | * |
||
67 | * @param string $name Name of the storage area |
||
68 | * |
||
69 | * @return Settings\Diverse\ZoneStorage |
||
70 | */ |
||
71 | public function setName($name) |
||
77 | |||
78 | /** |
||
79 | * Get name. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getName() |
||
87 | |||
88 | /** |
||
89 | * Get slug |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getSlug() |
||
97 | |||
98 | /** |
||
99 | * This method allows to do "echo $zoneStorage". |
||
100 | * <p> So, to "show" $unizoneStoraget, |
||
101 | * PHP will actually show the return of this method. <br /> |
||
102 | * Here, the abbreviation, so "echo $zoneStorage" |
||
103 | * is equivalent to "echo $zoneStorage->getName()" </ p>. |
||
104 | * |
||
105 | * @return string name |
||
106 | */ |
||
107 | public function __toString() |
||
111 | } |
||
112 |