<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
class InfoSectionEntry {
/**
* @var int
*/
private $id;
/**
* @var string
*/
private $heading;
/**
* @var string
*/
private $url;
private $urlType;
/**
* @var int
*/
private $target;
/**
* @var int
*/
private $position;
/**
* @var \App\Entity\InfoSectionSubCategory
*/
private $sectionSubCategory;
/**
* Get id.
*
* @return int
*/
public function getId() {
return $this->id;
}
/**
* Set heading.
*
* @param string $heading
*
* @return InfoSectionEntry
*/
public function setHeading($heading) {
$this->heading = $heading;
return $this;
}
/**
* Get heading.
*
* @return string
*/
public function getHeading() {
return $this->heading;
}
/**
* Set url.
*
* @param string $url
*
* @return InfoSectionEntry
*/
public function setUrl($url) {
$this->url = $url;
return $this;
}
/**
* Get url.
*
* @return string
*/
public function getUrl() {
return $this->url;
}
public function getUrlType() {
return $this->urlType;
}
public function setUrlType($urlType) {
$this->urlType = $urlType;
}
/**
* Set target.
*
* @param int $target
*
* @return InfoSectionEntry
*/
public function setTarget($target) {
$this->target = $target;
return $this;
}
/**
* Get target.
*
* @return int
*/
public function getTarget() {
return $this->target;
}
public function getTargetText() {
if (empty($this->target) || $this->target == 0) {
return "_self";
}
if ($this->target == 1) {
return "_self";
}
return "_blank";
}
/**
* Set position.
*
* @param int $position
*
* @return InfoSectionEntry
*/
public function setPosition($position) {
$this->position = $position;
return $this;
}
/**
* Get position.
*
* @return int
*/
public function getPosition() {
return $this->position;
}
/**
* Set sectionSubCategory.
*
* @param \App\Entity\InfoSectionSubCategory|null $sectionSubCategory
*
* @return InfoSectionEntry
*/
public function setSectionSubCategory(\App\Entity\InfoSectionSubCategory $sectionSubCategory = null) {
$this->sectionSubCategory = $sectionSubCategory;
return $this;
}
/**
* Get sectionSubCategory.
*
* @return \App\Entity\InfoSectionSubCategory|null
*/
public function getSectionSubCategory() {
return $this->sectionSubCategory;
}
}