5
5
class SayfaListeAyar extends ListeAyar
6
6
{
7
7
/**
8
+ * @deprecated
9
+ *
8
10
* @var int
9
11
*/
10
12
private $ kategoriId ;
11
13
14
+ /**
15
+ * @var int[]
16
+ */
17
+ private $ categoryIds ;
18
+
19
+ /**
20
+ * @var string[]
21
+ */
22
+ private $ categoryCodes ;
23
+
12
24
/**
13
25
* @return array
14
26
*/
15
27
public function toArray ()
16
28
{
17
29
return array_merge (parent ::toArray (), [
18
- 'kategoriId ' => $ this ->kategoriId
30
+ 'kategoriId ' => $ this ->kategoriId ,
31
+ 'category_ids ' => $ this ->categoryIds ,
32
+ 'category_codes ' => $ this ->categoryCodes
19
33
]);
20
34
}
21
35
22
36
/**
37
+ * @deprecated use addCategoryId
38
+ *
23
39
* @param int $kategoriId
24
40
* @return SayfaListeAyar
25
41
*/
@@ -30,10 +46,68 @@ public function setKategoriId($kategoriId)
30
46
}
31
47
32
48
/**
49
+ * @deprecated use getCategoryIds
50
+ *
33
51
* @return int
34
52
*/
35
53
public function getKategoriId ()
36
54
{
37
55
return $ this ->kategoriId ;
38
56
}
57
+
58
+ /**
59
+ * @param int $categoryId
60
+ * @return $this
61
+ */
62
+ public function addCategoryId ($ categoryId )
63
+ {
64
+ $ this ->categoryIds [] = $ categoryId ;
65
+ return $ this ;
66
+ }
67
+
68
+ /**
69
+ * @param \int[] $categoryIds
70
+ * @return SayfaListeAyar
71
+ */
72
+ public function setCategoryIds ($ categoryIds )
73
+ {
74
+ $ this ->categoryIds = $ categoryIds ;
75
+ return $ this ;
76
+ }
77
+
78
+ /**
79
+ * @return \int[]
80
+ */
81
+ public function getCategoryIds ()
82
+ {
83
+ return $ this ->categoryIds ;
84
+ }
85
+
86
+ /**
87
+ * @param string $categoryCode
88
+ * @return $this
89
+ */
90
+ public function addCategoryCode ($ categoryCode )
91
+ {
92
+ $ this ->categoryCodes [] = $ categoryCode ;
93
+ return $ this ;
94
+ }
95
+
96
+ /**
97
+ * @param \string[] $categoryCodes
98
+ * @return SayfaListeAyar
99
+ */
100
+ public function setCategoryCodes ($ categoryCodes )
101
+ {
102
+ $ this ->categoryCodes = $ categoryCodes ;
103
+ return $ this ;
104
+ }
105
+
106
+ /**
107
+ * @return \string[]
108
+ */
109
+ public function getCategoryCodes ()
110
+ {
111
+ return $ this ->categoryCodes ;
112
+ }
39
113
}
0 commit comments