<?php
namespace App\Entity;
use App\Business\FacilityContract;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\SoftDeleteable\Traits\SoftDeleteableEntity;
/**
* To use in many templates
*
* @ORM\Entity
* @ORM\Entity(repositoryClass="App\Repository\EventFacilityRepository")
*/
class EventFacility implements FacilityContract
{
use \Gedmo\Timestampable\Traits\TimestampableEntity;
use BlameableEntity;
use SoftDeleteableEntity;
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
public $id;
/**
* FROM NEOS ( id)
*
* @var string
* @ORM\Column(name="neosId",type="string", length=50)
*/
private $neosId;
/**
* FROM NEOS (code)
*
* @var string
* @ORM\Column(name="code",type="string", length=50)
*/
private $code;
/**
* FROM NEOS (name)
*
* @var string
* @ORM\Column(name="name",type="string", length=128)
*/
private $name;
/**
* @var string
* @ORM\Column(name="text", type="text",nullable=true)
*/
private $text;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Node", inversedBy="facilities")
* @ORM\JoinColumn(name="event_node_id", referencedColumnName="id")
*/
private $eventNode;
/**
* @return mixed
*/
public function getNeosId(): ?string
{
return $this->neosId;
}
/**
* @param mixed $neosId
*/
public function setNeosId($neosId)
{
$this->neosId = $neosId;
}
/**
* @return mixed
*/
public function getEventNode()
{
return $this->eventNode;
}
/**
* @param mixed $eventNode
*/
public function setEventNode($eventNode)
{
$this->eventNode = $eventNode;
}
/**
* @return mixed
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param mixed $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
public function toString(): string
{
return $this->getName() . " {id=" . $this->id . "}";
}
/**
* @return mixed
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name)
{
$this->name = $name;
}
public function __toString()
{
return (string)$this->text;
}
/**
* Get text
*
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Set text
*
* @param string $text
* @return EventFacility
*/
public function setText($text)
{
$this->text = $text;
return $this;
}
}