Skip to content

Commit fdf768c

Browse files
committed
galeri modülü
1 parent 2fde662 commit fdf768c

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

src/SistemApi/Model/Ayar/GaleriIcerikListeAyar.php

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ class GaleriIcerikListeAyar extends ListeAyar
1414
*/
1515
private $galeriTurId;
1616

17+
/**
18+
* @var string[]
19+
*/
20+
private $galleryCodes;
21+
1722
/**
1823
* @return array
1924
*/
2025
public function toArray()
2126
{
2227
return array_merge(parent::toArray(), [
2328
'galeri_ids' => $this->galeriIds,
24-
'galeri_tur_id' => $this->galeriTurId
29+
'galeri_tur_id' => $this->galeriTurId,
30+
'gallery_codes' => $this->galleryCodes
2531
]);
2632
}
2733

@@ -73,4 +79,35 @@ public function getGaleriTurId()
7379
{
7480
return $this->galeriTurId;
7581
}
82+
83+
/**
84+
* @param string $galleryCode
85+
* @return $this
86+
*/
87+
public function addGalleryCode($galleryCode)
88+
{
89+
if ( ! is_null($galleryCode)) {
90+
$this->galleryCodes[] = $galleryCode;
91+
$this->galleryCodes = array_unique($this->galleryCodes);
92+
}
93+
return $this;
94+
}
95+
96+
/**
97+
* @param \string[] $galleryCodes
98+
* @return GaleriIcerikListeAyar
99+
*/
100+
public function setGalleryCodes($galleryCodes)
101+
{
102+
$this->galleryCodes = $galleryCodes;
103+
return $this;
104+
}
105+
106+
/**
107+
* @return \string[]
108+
*/
109+
public function getGalleryCodes()
110+
{
111+
return $this->galleryCodes;
112+
}
76113
}

0 commit comments

Comments
 (0)