diff --git a/src/Bundle/ChillMainBundle/Entity/Notification.php b/src/Bundle/ChillMainBundle/Entity/Notification.php index 51ea0e39f..3854525b8 100644 --- a/src/Bundle/ChillMainBundle/Entity/Notification.php +++ b/src/Bundle/ChillMainBundle/Entity/Notification.php @@ -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() {