<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
class InfoSectionSubCategory {
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $heading;
/**
* @var string|null
*/
private $description;
/**
* @var int
*/
private $position;
/**
* @var \App\Entity\InfoSectionCategory
*/
private $infoSectionCategory;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $entries;
/**
* @var string
*/
private $urlText;
/**
* Constructor
*/
public function __construct() {
$this->entries = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id.
*
* @return int
*/
public function getId() {
return $this->id;
}
/**
* Set heading.
*
* @param string $heading
*
* @return InfoSectionSubCategory
*/
public function setHeading($heading) {
$this->heading = $heading;
return $this;
}
/**
* Get heading.
*
* @return string
*/
public function getHeading() {
return $this->heading;
}
/**
* Set description.
*
* @param string|null $description
*
* @return InfoSectionSubCategory
*/
public function setDescription($description = null) {
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string|null
*/
public function getDescription() {
return $this->description;
}
/**
* Set position.
*
* @param int $position
*
* @return InfoSectionSubCategory
*/
public function setPosition($position) {
$this->position = $position;
return $this;
}
/**
* Get position.
*
* @return int
*/
public function getPosition() {
return $this->position;
}
/**
* Set infoSectionCategory.
*
* @param \App\Entity\InfoSectionCategory|null $infoSectionCategory
*
* @return InfoSectionSubCategory
*/
public function setInfoSectionCategory(\App\Entity\InfoSectionCategory $infoSectionCategory = null) {
$this->infoSectionCategory = $infoSectionCategory;
return $this;
}
/**
* Get infoSectionCategory.
*
* @return \App\Entity\InfoSectionCategory|null
*/
public function getInfoSectionCategory() {
return $this->infoSectionCategory;
}
/**
* Add entry.
*
* @param \App\Entity\InfoSectionEntry $entry
*
* @return InfoSectionSubCategory
*/
public function addEntry(\App\Entity\InfoSectionEntry $entry) {
$this->entries[] = $entry;
return $this;
}
/**
* Remove entry.
*
* @param \App\Entity\InfoSectionEntry $entry
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeEntry(\App\Entity\InfoSectionEntry $entry) {
return $this->entries->removeElement($entry);
}
/**
* Get entries.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getEntries() {
return $this->entries;
}
public function getUrlText() {
return $this->urlText;
}
public function setUrlText($urlText) {
$this->urlText = $urlText;
}
public function __toString() {
return $this->heading;
}
}