src/Entity/Adherent/MagasinHorairesExceptionnelles.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Adherent;
  3. use App\Repository\Adherent\MagasinHorairesExceptionnellesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use DoctrineExtensions\Query\Mysql\Date;
  6. use DoctrineExtensions\Query\Mysql\Time;
  7. #[ORM\Table(name'magasin_horaires_exceptionnelles')]
  8. #[ORM\Entity(repositoryClassMagasinHorairesExceptionnellesRepository::class)]
  9. class MagasinHorairesExceptionnelles
  10. {
  11.     #[ORM\Column(name'id'type'integer')]
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue(strategy'AUTO')]
  14.     private ?int $id null;
  15.     #[ORM\Column(name'date_debut'type'date'nullablefalse)]
  16.     private \DateTime|null $date_debut null;
  17.     #[ORM\Column(name'date_fin'type'date'nullablefalse)]
  18.     private \DateTime|null $date_fin null;
  19.     #[ORM\Column(name'HoAm'type'time'nullabletrue)]
  20.     private \DateTime|null $HoAm null;
  21.     #[ORM\Column(name'HfAm'type'time'nullabletrue)]
  22.     private \DateTime|null $HfAm null;
  23.     #[ORM\Column(name'HoPm'type'time'nullabletrue)]
  24.     private \DateTime|null $HoPm null;
  25.     #[ORM\Column(name'HfPm'type'time'nullabletrue)]
  26.     private \DateTime|null $HfPm null;
  27.     #[ORM\Column(name'full_day'type'boolean'nullablefalse)]
  28.     private ?bool $fullDay null;
  29.     #[ORM\Column(name'open'type'boolean'nullablefalse)]
  30.     private ?bool $open null;
  31.     #[ORM\Column(name'comment'type'text'nullabletrue)]
  32.     private ?string $comment null;
  33.     #[ORM\Column(name'comment_nl'type'text'nullabletrue)]
  34.     private ?string $commentNl null;
  35.     #[ORM\ManyToOne(targetEntityMagasin::class, inversedBy'magasinHorairesExceptionnelles')]
  36.     #[ORM\JoinColumn(name'magasin'referencedColumnName'k_adherent')]
  37.     private $magasin;
  38.     //Fonction pour retourner un array issue de la collection d'objet
  39.     public function toArray(){
  40.         return get_object_vars($this);
  41.     }
  42.     /**
  43.      * Get id.
  44.      *
  45.      * @return int
  46.      */
  47.     public function getId()
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * Set day.
  53.      *
  54.      * @param \DateTime $day
  55.      *
  56.      * @return MagasinHorairesExceptionnelles
  57.      */
  58.     public function setDay($day)
  59.     {
  60.         $this->day $day;
  61.         return $this;
  62.     }
  63.     /**
  64.      * Get day.
  65.      *
  66.      * @return \DateTime
  67.      */
  68.     public function getDay()
  69.     {
  70.         return $this->day;
  71.     }
  72.     /**
  73.      * Set openAm.
  74.      *
  75.      * @param \DateTime|null $openAm
  76.      *
  77.      * @return MagasinHorairesExceptionnelles
  78.      */
  79.     public function setOpenAm($openAm null)
  80.     {
  81.         $this->openAm $openAm;
  82.         return $this;
  83.     }
  84.     /**
  85.      * Get openAm.
  86.      *
  87.      * @return \DateTime|null
  88.      */
  89.     public function getOpenAm()
  90.     {
  91.         return $this->openAm;
  92.     }
  93.     /**
  94.      * Set closeAm.
  95.      *
  96.      * @param \DateTime|null $closeAm
  97.      *
  98.      * @return MagasinHorairesExceptionnelles
  99.      */
  100.     public function setCloseAm($closeAm null)
  101.     {
  102.         $this->closeAm $closeAm;
  103.         return $this;
  104.     }
  105.     /**
  106.      * Get closeAm.
  107.      *
  108.      * @return \DateTime|null
  109.      */
  110.     public function getCloseAm()
  111.     {
  112.         return $this->closeAm;
  113.     }
  114.     /**
  115.      * @return string|null
  116.      */
  117.     public function getCommentNl(): ?string
  118.     {
  119.         return $this->commentNl;
  120.     }
  121.     /**
  122.      * @param string|null $commentNl
  123.      */
  124.     public function setCommentNl(?string $commentNl): void
  125.     {
  126.         $this->commentNl $commentNl;
  127.     }
  128.     /**
  129.      * Set openPm.
  130.      *
  131.      * @param \DateTime|null $openPm
  132.      *
  133.      * @return MagasinHorairesExceptionnelles
  134.      */
  135.     public function setOpenPm($openPm null)
  136.     {
  137.         $this->openPm $openPm;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get openPm.
  142.      *
  143.      * @return \DateTime|null
  144.      */
  145.     public function getOpenPm()
  146.     {
  147.         return $this->openPm;
  148.     }
  149.     /**
  150.      * Set closePm.
  151.      *
  152.      * @param \DateTime|null $closePm
  153.      *
  154.      * @return MagasinHorairesExceptionnelles
  155.      */
  156.     public function setClosePm($closePm null)
  157.     {
  158.         $this->closePm $closePm;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get closePm.
  163.      *
  164.      * @return \DateTime|null
  165.      */
  166.     public function getClosePm()
  167.     {
  168.         return $this->closePm;
  169.     }
  170.     /**
  171.      * Set fullDay.
  172.      *
  173.      * @param bool $fullDay
  174.      *
  175.      * @return MagasinHorairesExceptionnelles
  176.      */
  177.     public function setFullDay($fullDay)
  178.     {
  179.         $this->fullDay $fullDay;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get fullDay.
  184.      *
  185.      * @return bool
  186.      */
  187.     public function getFullDay()
  188.     {
  189.         return $this->fullDay;
  190.     }
  191.     /**
  192.      * Set open.
  193.      *
  194.      * @param bool $open
  195.      *
  196.      * @return MagasinHorairesExceptionnelles
  197.      */
  198.     public function setOpen($open)
  199.     {
  200.         $this->open $open;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get open.
  205.      *
  206.      * @return bool
  207.      */
  208.     public function getOpen()
  209.     {
  210.         return $this->open;
  211.     }
  212.     /**
  213.      * Set comment.
  214.      *
  215.      * @param string|null $comment
  216.      *
  217.      * @return MagasinHorairesExceptionnelles
  218.      */
  219.     public function setComment($comment null)
  220.     {
  221.         $this->comment $comment;
  222.         return $this;
  223.     }
  224.     /**
  225.      * Get comment.
  226.      *
  227.      * @return string|null
  228.      */
  229.     public function getComment()
  230.     {
  231.         return $this->comment;
  232.     }
  233.     /**
  234.      * Set dateDebut.
  235.      *
  236.      * @param \DateTime $dateDebut
  237.      *
  238.      * @return MagasinHorairesExceptionnelles
  239.      */
  240.     public function setDateDebut($dateDebut)
  241.     {
  242.         $this->date_debut $dateDebut;
  243.         return $this;
  244.     }
  245.     /**
  246.      * Get dateDebut.
  247.      *
  248.      * @return \DateTime
  249.      */
  250.     public function getDateDebut()
  251.     {
  252.         return $this->date_debut;
  253.     }
  254.     /**
  255.      * Set dateFin.
  256.      *
  257.      * @param \DateTime $dateFin
  258.      *
  259.      * @return MagasinHorairesExceptionnelles
  260.      */
  261.     public function setDateFin($dateFin)
  262.     {
  263.         $this->date_fin $dateFin;
  264.         return $this;
  265.     }
  266.     /**
  267.      * Get dateFin.
  268.      *
  269.      * @return \DateTime
  270.      */
  271.     public function getDateFin()
  272.     {
  273.         return $this->date_fin;
  274.     }
  275.     /**
  276.      * Set hoAm.
  277.      *
  278.      * @param \DateTime|null $hoAm
  279.      *
  280.      * @return MagasinHorairesExceptionnelles
  281.      */
  282.     public function setHoAm($hoAm null)
  283.     {
  284.         $this->HoAm $hoAm;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get hoAm.
  289.      *
  290.      * @return \DateTime|null
  291.      */
  292.     public function getHoAm()
  293.     {
  294.         return $this->HoAm;
  295.     }
  296.     /**
  297.      * Set hfAm.
  298.      *
  299.      * @param \DateTime|null $hfAm
  300.      *
  301.      * @return MagasinHorairesExceptionnelles
  302.      */
  303.     public function setHfAm($hfAm null)
  304.     {
  305.         $this->HfAm $hfAm;
  306.         return $this;
  307.     }
  308.     /**
  309.      * Get hfAm.
  310.      *
  311.      * @return \DateTime|null
  312.      */
  313.     public function getHfAm()
  314.     {
  315.         return $this->HfAm;
  316.     }
  317.     /**
  318.      * Set hoPm.
  319.      *
  320.      * @param \DateTime|null $hoPm
  321.      *
  322.      * @return MagasinHorairesExceptionnelles
  323.      */
  324.     public function setHoPm($hoPm null)
  325.     {
  326.         $this->HoPm $hoPm;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Get hoPm.
  331.      *
  332.      * @return \DateTime|null
  333.      */
  334.     public function getHoPm()
  335.     {
  336.         return $this->HoPm;
  337.     }
  338.     /**
  339.      * Set hfPm.
  340.      *
  341.      * @param \DateTime|null $hfPm
  342.      *
  343.      * @return MagasinHorairesExceptionnelles
  344.      */
  345.     public function setHfPm($hfPm null)
  346.     {
  347.         $this->HfPm $hfPm;
  348.         return $this;
  349.     }
  350.     /**
  351.      * Get hfPm.
  352.      *
  353.      * @return \DateTime|null
  354.      */
  355.     public function getHfPm()
  356.     {
  357.         return $this->HfPm;
  358.     }
  359.     public function getMagasin(): ?Magasin
  360.     {
  361.         return $this->magasin;
  362.     }
  363.     public function setMagasin(?Magasin $magasin): self
  364.     {
  365.         $this->magasin $magasin;
  366.         return $this;
  367.     }
  368. }