src/Entity/Joker.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\JokerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassJokerRepository::class)]
  6. class Joker
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'joker')]
  13.     private $user;
  14.     #[ORM\Column(name'dateStart'type'date'nullabletrue)]
  15.     private ?\DateTime $dateStart;
  16.     #[ORM\Column(name'dateEnd'type'date'nullabletrue)]
  17.     private ?\DateTime $dateEnd;
  18.     #[ORM\Column(name'numberJoker'type'integer'nullabletrue)]
  19.     private ?int $numberJoker;
  20.     /**
  21.      * @return int|null
  22.      */
  23.     public function getNumberJoker(): ?int
  24.     {
  25.         return $this->numberJoker;
  26.     }
  27.     /**
  28.      * @param int|null $numberJoker
  29.      */
  30.     public function setNumberJoker(?int $numberJoker): void
  31.     {
  32.         $this->numberJoker $numberJoker;
  33.     }
  34.     /**
  35.      * @return mixed
  36.      */
  37.     public function getUser()
  38.     {
  39.         return $this->user;
  40.     }
  41.     /**
  42.      * @param mixed $user
  43.      */
  44.     public function setUser($user): void
  45.     {
  46.         $this->user $user;
  47.     }
  48.     /**
  49.      * @return \DateTime|null
  50.      */
  51.     public function getDateStart(): ?\DateTime
  52.     {
  53.         return $this->dateStart;
  54.     }
  55.     /**
  56.      * @param \DateTime|null $dateStart
  57.      */
  58.     public function setDateStart(?\DateTime $dateStart): void
  59.     {
  60.         $this->dateStart $dateStart;
  61.     }
  62.     /**
  63.      * @return \DateTime|null
  64.      */
  65.     public function getDateEnd(): ?\DateTime
  66.     {
  67.         return $this->dateEnd;
  68.     }
  69.     /**
  70.      * @param \DateTime|null $dateEnd
  71.      */
  72.     public function setDateEnd(?\DateTime $dateEnd): void
  73.     {
  74.         $this->dateEnd $dateEnd;
  75.     }
  76.     public function getId(): ?int
  77.     {
  78.         return $this->id;
  79.     }
  80. }