Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Nov 6, 2021
2 parents 89d231c + 09c1c07 commit b387858
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/Model/Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ final public function getDefaultFormat(): string
return $this->defaultFormat;
}

public function setGalleryItems(Collection $galleryItems): void
final public function setGalleryItems(Collection $galleryItems): void
{
$this->galleryItems = new ArrayCollection();

Expand All @@ -115,26 +115,26 @@ public function setGalleryItems(Collection $galleryItems): void
}
}

public function getGalleryItems(): Collection
final public function getGalleryItems(): Collection
{
return $this->galleryItems;
}

public function addGalleryItem(GalleryItemInterface $galleryItem): void
final public function addGalleryItem(GalleryItemInterface $galleryItem): void
{
$galleryItem->setGallery($this);

$this->galleryItems[] = $galleryItem;
}

public function removeGalleryItem(GalleryItemInterface $galleryItem): void
final public function removeGalleryItem(GalleryItemInterface $galleryItem): void
{
if ($this->galleryItems->contains($galleryItem)) {
$this->galleryItems->removeElement($galleryItem);
}
}

public function reorderGalleryItems(): void
final public function reorderGalleryItems(): void
{
$iterator = $this->getGalleryItems()->getIterator();

Expand Down
24 changes: 12 additions & 12 deletions src/Model/GalleryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,62 +32,62 @@ public function __toString(): string
return $this->getGallery().' | '.$this->getMedia();
}

public function setEnabled(bool $enabled): void
final public function setEnabled(bool $enabled): void
{
$this->enabled = $enabled;
}

public function getEnabled(): bool
final public function getEnabled(): bool
{
return $this->enabled;
}

public function setGallery(?GalleryInterface $gallery = null): void
final public function setGallery(?GalleryInterface $gallery = null): void
{
$this->gallery = $gallery;
}

public function getGallery(): ?GalleryInterface
final public function getGallery(): ?GalleryInterface
{
return $this->gallery;
}

public function setMedia(?MediaInterface $media = null): void
final public function setMedia(?MediaInterface $media = null): void
{
$this->media = $media;
}

public function getMedia(): ?MediaInterface
final public function getMedia(): ?MediaInterface
{
return $this->media;
}

public function setPosition(int $position): void
final public function setPosition(int $position): void
{
$this->position = $position;
}

public function getPosition(): int
final public function getPosition(): int
{
return $this->position;
}

public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
final public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
{
$this->updatedAt = $updatedAt;
}

public function getUpdatedAt(): ?\DateTimeInterface
final public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}

public function setCreatedAt(?\DateTimeInterface $createdAt): void
final public function setCreatedAt(?\DateTimeInterface $createdAt): void
{
$this->createdAt = $createdAt;
}

public function getCreatedAt(): ?\DateTimeInterface
final public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ final public function setCategory(?object $category = null): void
$this->category = $category;
}

public function setGalleryItems(Collection $galleryItems): void
final public function setGalleryItems(Collection $galleryItems): void
{
$this->galleryItems = $galleryItems;
}

public function getGalleryItems(): Collection
final public function getGalleryItems(): Collection
{
return $this->galleryItems;
}
Expand Down

0 comments on commit b387858

Please sign in to comment.