mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
Rector: apply rules for doctrine code quality
This commit is contained in:
@@ -42,10 +42,9 @@ class Report implements HasCenterInterface, HasScopeInterface
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $cFGroup = null;
|
||||
|
||||
/**
|
||||
* @var DateTime
|
||||
* @ORM\Column(type="datetime")
|
||||
*/
|
||||
private $date;
|
||||
private ?\DateTime $date = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -54,7 +53,7 @@ class Report implements HasCenterInterface, HasScopeInterface
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private $id;
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
|
||||
@@ -101,10 +100,8 @@ class Report implements HasCenterInterface, HasScopeInterface
|
||||
|
||||
/**
|
||||
* Get date.
|
||||
*
|
||||
* @return DateTime
|
||||
*/
|
||||
public function getDate()
|
||||
public function getDate(): ?DateTime
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
Reference in New Issue
Block a user