1 | <?php |
||
24 | class Category extends AbstractEntity |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Title |
||
29 | * |
||
30 | * @var string |
||
31 | * @validate NotEmpty |
||
32 | */ |
||
33 | protected $title; |
||
34 | |||
35 | /** |
||
36 | * parent |
||
37 | * |
||
38 | * @var \DERHANSEN\SfBanners\Domain\Model\Category |
||
39 | */ |
||
40 | protected $parent; |
||
41 | |||
42 | /** |
||
43 | * Returns the title |
||
44 | * |
||
45 | * @return string $title |
||
46 | */ |
||
47 | 1 | public function getTitle() |
|
51 | |||
52 | /** |
||
53 | * Sets the title |
||
54 | * |
||
55 | * @param string $title |
||
56 | * @return void |
||
57 | */ |
||
58 | 1 | public function setTitle($title) |
|
62 | |||
63 | /** |
||
64 | * Returns the parent |
||
65 | * |
||
66 | * @return \DERHANSEN\SfBanners\Domain\Model\Category $parent |
||
67 | */ |
||
68 | 1 | public function getParent() |
|
72 | |||
73 | /** |
||
74 | * Sets the parent |
||
75 | * |
||
76 | * @param \DERHANSEN\SfBanners\Domain\Model\Category $parent |
||
77 | * @return void |
||
78 | */ |
||
79 | 1 | public function setParent(Category $parent) |
|
83 | |||
84 | } |
||
85 |