Skip to content

Commit c45c045

Browse files
committed
sayfa modülü
1 parent 6280a36 commit c45c045

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

src/SistemApi/Model/Ayar/SayfaListeAyar.php

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,37 @@
55
class SayfaListeAyar extends ListeAyar
66
{
77
/**
8+
* @deprecated
9+
*
810
* @var int
911
*/
1012
private $kategoriId;
1113

14+
/**
15+
* @var int[]
16+
*/
17+
private $categoryIds;
18+
19+
/**
20+
* @var string[]
21+
*/
22+
private $categoryCodes;
23+
1224
/**
1325
* @return array
1426
*/
1527
public function toArray()
1628
{
1729
return array_merge(parent::toArray(), [
18-
'kategoriId' => $this->kategoriId
30+
'kategoriId' => $this->kategoriId,
31+
'category_ids' => $this->categoryIds,
32+
'category_codes' => $this->categoryCodes
1933
]);
2034
}
2135

2236
/**
37+
* @deprecated use addCategoryId
38+
*
2339
* @param int $kategoriId
2440
* @return SayfaListeAyar
2541
*/
@@ -30,10 +46,68 @@ public function setKategoriId($kategoriId)
3046
}
3147

3248
/**
49+
* @deprecated use getCategoryIds
50+
*
3351
* @return int
3452
*/
3553
public function getKategoriId()
3654
{
3755
return $this->kategoriId;
3856
}
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+
}
39113
}

0 commit comments

Comments
 (0)