Adding typehinting for Entity/Notif

This commit is contained in:
Marc Ducobu 2021-06-15 14:49:17 +02:00
parent 86d764c097
commit db545f9fe6

View File

@ -41,44 +41,44 @@ class Notification
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
private int $id;
/**
* @ORM\Column(type="text")
*/
private $message;
private string $message;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $date;
private \DateTimeImmutable $date;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $sender;
private User $sender;
/**
* @ORM\ManyToMany(targetEntity=User::class)
* @ORM\JoinTable(name="chill_main_notification_addresses_user")
*/
private $addressees;
private Collection $addressees;
/**
* @ORM\Column(type="string", length=255)
*/
private $relatedEntityClass;
private string $relatedEntityClass;
/**
* @ORM\Column(type="integer")
*/
private $relatedEntityId;
private int $relatedEntityId;
/**
* @ORM\Column(type="json")
*/
private $read;
private array $read;
public function __construct()
{