mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
apply rector rules
This commit is contained in:
@@ -33,22 +33,19 @@ use Traversable;
|
||||
class Event implements HasCenterInterface, HasScopeInterface
|
||||
{
|
||||
/**
|
||||
* @var Center
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Center")
|
||||
*/
|
||||
private $center;
|
||||
private ?\Chill\MainBundle\Entity\Center $center = null;
|
||||
|
||||
/**
|
||||
* @var Scope
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
|
||||
*/
|
||||
private $circle;
|
||||
private ?\Chill\MainBundle\Entity\Scope $circle = null;
|
||||
|
||||
/**
|
||||
* @var DateTime
|
||||
* @ORM\Column(type="datetime")
|
||||
*/
|
||||
private $date;
|
||||
private ?\DateTime $date = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -80,10 +77,9 @@ class Event implements HasCenterInterface, HasScopeInterface
|
||||
private Collection $participations;
|
||||
|
||||
/**
|
||||
* @var EventType
|
||||
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\EventType")
|
||||
*/
|
||||
private $type;
|
||||
private ?\Chill\EventBundle\Entity\EventType $type = null;
|
||||
|
||||
/**
|
||||
* Event constructor.
|
||||
|
@@ -35,12 +35,11 @@ use function in_array;
|
||||
class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterface
|
||||
{
|
||||
/**
|
||||
* @var Event
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="Chill\EventBundle\Entity\Event",
|
||||
* inversedBy="participations")
|
||||
*/
|
||||
private $event;
|
||||
private ?\Chill\EventBundle\Entity\Event $event = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -52,28 +51,24 @@ class Participation implements ArrayAccess, HasCenterInterface, HasScopeInterfac
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var DateTime
|
||||
* @ORM\Column(type="datetime")
|
||||
*/
|
||||
private $lastUpdate;
|
||||
private ?\DateTime $lastUpdate = null;
|
||||
|
||||
/**
|
||||
* @var Person
|
||||
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
|
||||
*/
|
||||
private $person;
|
||||
private ?\Chill\PersonBundle\Entity\Person $person = null;
|
||||
|
||||
/**
|
||||
* @var Role
|
||||
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Role")
|
||||
*/
|
||||
private $role;
|
||||
private ?\Chill\EventBundle\Entity\Role $role = null;
|
||||
|
||||
/**
|
||||
* @var Status
|
||||
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Status")
|
||||
*/
|
||||
private $status;
|
||||
private ?\Chill\EventBundle\Entity\Status $status = null;
|
||||
|
||||
/**
|
||||
* @return Center
|
||||
|
@@ -44,12 +44,11 @@ class Role
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var EventType
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="Chill\EventBundle\Entity\EventType",
|
||||
* inversedBy="roles")
|
||||
*/
|
||||
private $type;
|
||||
private ?\Chill\EventBundle\Entity\EventType $type = null;
|
||||
|
||||
/**
|
||||
* Get active.
|
||||
|
@@ -44,12 +44,11 @@ class Status
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var EventType
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="Chill\EventBundle\Entity\EventType",
|
||||
* inversedBy="statuses")
|
||||
*/
|
||||
private $type;
|
||||
private ?\Chill\EventBundle\Entity\EventType $type = null;
|
||||
|
||||
/**
|
||||
* Get active.
|
||||
|
Reference in New Issue
Block a user