3 namespace Rapsys\AirBundle\Entity
;
30 * @var \Doctrine\Common\Collections\Collection
37 public function __construct() {
38 $this->sessions
= new \Doctrine\Common\Collections\
ArrayCollection();
46 public function getId() {
53 * @param string $title
57 public function setTitle($title) {
58 $this->title
= $title;
68 public function getTitle(): string {
75 * @param \DateTime $created
79 public function setCreated($created) {
80 $this->created
= $created;
90 public function getCreated() {
91 return $this->created
;
97 * @param \DateTime $updated
101 public function setUpdated($updated) {
102 $this->updated
= $updated;
112 public function getUpdated() {
113 return $this->updated
;
119 * @param \Rapsys\AirBundle\Entity\Session $session
123 public function addSession(\Rapsys\AirBundle\Entity\Session
$session) {
124 $this->sessions
[] = $session;
132 * @param \Rapsys\AirBundle\Entity\Session $session
134 public function removeSession(\Rapsys\AirBundle\Entity\Session
$session) {
135 $this->sessions
->removeElement($session);
141 * @return \Doctrine\Common\Collections\Collection
143 public function getSessions() {
144 return $this->sessions
;
148 * Returns a string representation of the slot
152 public function __toString(): string {