mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
initialize entities
This commit is contained in:
171
Entity/Participation.php
Normal file
171
Entity/Participation.php
Normal file
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
namespace Chill\EventBundle\Entity;
|
||||
|
||||
/**
|
||||
* Participation
|
||||
*/
|
||||
class Participation
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
private $lastUpdate;
|
||||
|
||||
/**
|
||||
* @var \Chill\EventBundle\Entity\Event
|
||||
*/
|
||||
private $event;
|
||||
|
||||
/**
|
||||
* @var \Chill\PersonBundle\Entity\Person
|
||||
*/
|
||||
private $person;
|
||||
|
||||
/**
|
||||
* @var \Chill\EventBundle\Entity\Role
|
||||
*/
|
||||
private $role;
|
||||
|
||||
/**
|
||||
* @var \Chill\EventBundle\Entity\Status
|
||||
*/
|
||||
private $status;
|
||||
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return integer
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set lastUpdate
|
||||
*
|
||||
* @param \DateTime $lastUpdate
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setLastUpdate($lastUpdate)
|
||||
{
|
||||
$this->lastUpdate = $lastUpdate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lastUpdate
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getLastUpdate()
|
||||
{
|
||||
return $this->lastUpdate;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set event
|
||||
*
|
||||
* @param \Chill\EventBundle\Entity\Event $event
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setEvent(\Chill\EventBundle\Entity\Event $event = null)
|
||||
{
|
||||
$this->event = $event;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get event
|
||||
*
|
||||
* @return \Chill\EventBundle\Entity\Event
|
||||
*/
|
||||
public function getEvent()
|
||||
{
|
||||
return $this->event;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set person
|
||||
*
|
||||
* @param \Chill\PersonBundle\Entity\Person $person
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setPerson(\Chill\PersonBundle\Entity\Person $person = null)
|
||||
{
|
||||
$this->person = $person;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get person
|
||||
*
|
||||
* @return \Chill\PersonBundle\Entity\Person
|
||||
*/
|
||||
public function getPerson()
|
||||
{
|
||||
return $this->person;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set role
|
||||
*
|
||||
* @param \Chill\EventBundle\Entity\Role $role
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setRole(\Chill\EventBundle\Entity\Role $role = null)
|
||||
{
|
||||
$this->role = $role;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get role
|
||||
*
|
||||
* @return \Chill\EventBundle\Entity\Role
|
||||
*/
|
||||
public function getRole()
|
||||
{
|
||||
return $this->role;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set status
|
||||
*
|
||||
* @param \Chill\EventBundle\Entity\Status $status
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setStatus(\Chill\EventBundle\Entity\Status $status = null)
|
||||
{
|
||||
$this->status = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get status
|
||||
*
|
||||
* @return \Chill\EventBundle\Entity\Status
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user