<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
class ContactGallery
{
/**
* @var int
*/
private $id;
/**
* @var bool|null
*/
private $isVisible = true;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $galleryEntries;
/**
* Constructor
*/
public function __construct()
{
$this->galleryEntries = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set isVisible.
*
* @param bool|null $isVisible
*
* @return ContactGallery
*/
public function setIsVisible($isVisible = null)
{
$this->isVisible = $isVisible;
return $this;
}
/**
* Get isVisible.
*
* @return bool|null
*/
public function getIsVisible()
{
return $this->isVisible;
}
/**
* Add galleryEntry.
*
* @param \App\Entity\ContactGalleryEntry $galleryEntry
*
* @return ContactGallery
*/
public function addGalleryEntry(\App\Entity\ContactGalleryEntry $galleryEntry)
{
$this->galleryEntries[] = $galleryEntry;
return $this;
}
/**
* Remove galleryEntry.
*
* @param \App\Entity\ContactGalleryEntry $galleryEntry
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeGalleryEntry(\App\Entity\ContactGalleryEntry $galleryEntry)
{
return $this->galleryEntries->removeElement($galleryEntry);
}
/**
* Get galleryEntries.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getGalleryEntries()
{
return $this->galleryEntries;
}
}