src/Entity/ArretTravail.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use ApiPlatform\Core\Annotation\ApiResource;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. use App\Entity\Intervention;
  9. use App\Entity\User;
  10. use App\Entity\Client;
  11. use App\Repository\ArretTravailRepository;
  12. /**
  13.  *
  14.  * Represente le planning des médécins probablement.
  15.  * @ORM\Table()
  16.  * @ORM\Entity(repositoryClass=ArretTravailRepository::class)
  17.  *
  18.  */
  19. class ArretTravail
  20. {
  21.     use TimestampableTrait;
  22.     /**
  23.      * @var integer $id
  24.      *
  25.      * @ORM\Id
  26.      * @ORM\Column(type="integer")
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      *
  29.      * @Groups({"read"})
  30.      */
  31.     private $id;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="name", type="string")
  36.      *
  37.      * @Assert\NotBlank()
  38.      * @Groups({"read"})
  39.      */
  40.     private $name;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="affectation", type="boolean")
  45.      * @Groups({"read"})
  46.      */
  47.     private $affectation false;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="grossesse", type="boolean")
  52.      * @Groups({"read"})
  53.      */
  54.     private $grossesse false;
  55.     /**
  56.      * @var boolean
  57.      *
  58.      * @ORM\Column(name="longueDuree", type="boolean")
  59.      * @Groups({"read"})
  60.      */
  61.     private $longueDuree false;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="motifMedical", type="text")
  66.      * @Groups({"read"})
  67.      */
  68.     private $motifMedical;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="stopUntilLetter", type="text", nullable=true)
  73.      * @Groups({"read"})
  74.      */
  75.     private $stopUntilLetter;
  76.     /**
  77.      * @var string
  78.      *
  79.      * @ORM\Column(name="sortiesSansRestrictions", type="boolean")
  80.      * @Groups({"read"})
  81.      */
  82.     private $sortiesSansRestrictions false;
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(name="sorties", type="boolean")
  87.      * @Groups({"read"})
  88.      */
  89.     private $sorties false;
  90.     /**
  91.      * @var \DateTime
  92.      *
  93.      * @ORM\Column(name="until", type="datetime", nullable=true)
  94.      * @Groups({"read"})
  95.      */
  96.     private $until;
  97.     /**
  98.      * @var \DateTime
  99.      *
  100.      * @ORM\Column(name="sortiesFrom", type="datetime", nullable=true)
  101.      * @Groups({"read"})
  102.      */
  103.     private $sortiesFrom;
  104.     /**
  105.      * @var \DateTime
  106.      *
  107.      * @ORM\Column(name="sortiesSansRestrictionsFrom", type="datetime", nullable=true)
  108.      * @Groups({"read"})
  109.      */
  110.     private $sortiesSansRestrictionsFrom;
  111.     /**
  112.      * @var \DateTime
  113.      *
  114.      * @ORM\Column(name="tempsPartielFrom", type="datetime", nullable=true)
  115.      * @Groups({"read"})
  116.      */
  117.     private $tempsPartielFrom;
  118.     /**
  119.      * @var \DateTime
  120.      *
  121.      * @ORM\Column(name="tempsPartielTo", type="datetime", nullable=true)
  122.      * @Groups({"read"})
  123.      */
  124.     private $tempsPartielTo;
  125.     /**
  126.      * @var Intervention
  127.      * @ORM\ManyToOne(
  128.      *   targetEntity=Client::class
  129.      * )
  130.      * @Groups({"read"})
  131.      */
  132.     private $client;
  133.     /**
  134.      * @var Intervention
  135.      * @ORM\ManyToOne(
  136.      *   targetEntity=Intervention::class, inversedBy="arrets"
  137.      * )
  138.      * @Groups({"read"})
  139.      */
  140.     private $intervention;
  141.     /**
  142.      * @return int
  143.      */
  144.     public function getId()
  145.     {
  146.         return $this->id;
  147.     }
  148.     /**
  149.      * @param int $id
  150.      */
  151.     public function setId($id)
  152.     {
  153.         $this->id $id;
  154.     }
  155.     /**
  156.      * @return string
  157.      */
  158.     public function getName()
  159.     {
  160.         return $this->name;
  161.     }
  162.     /**
  163.      * @param string $name
  164.      */
  165.     public function setName($name)
  166.     {
  167.         $this->name $name;
  168.     }
  169.     /**
  170.      * @return string
  171.      */
  172.     public function getAffectation()
  173.     {
  174.         return $this->affectation;
  175.     }
  176.     /**
  177.      * @param string $affectation
  178.      */
  179.     public function setAffectation($affectation)
  180.     {
  181.         $this->affectation $affectation;
  182.     }
  183.     /**
  184.      * @return string
  185.      */
  186.     public function getGrossesse()
  187.     {
  188.         return $this->grossesse;
  189.     }
  190.     /**
  191.      * @param string $grossesse
  192.      */
  193.     public function setGrossesse($grossesse)
  194.     {
  195.         $this->grossesse $grossesse;
  196.     }
  197.     /**
  198.      * @return string
  199.      */
  200.     public function getLongueDuree()
  201.     {
  202.         return $this->longueDuree;
  203.     }
  204.     /**
  205.      * @param boolean $longueDuree
  206.      */
  207.     public function setLongueDuree($longueDuree)
  208.     {
  209.         $this->longueDuree $longueDuree;
  210.     }
  211.     /**
  212.      * @return string
  213.      */
  214.     public function getSortiesSansRestrictions()
  215.     {
  216.         return $this->sortiesSansRestrictions;
  217.     }
  218.     /**
  219.      * @param string $sortiesSansRestrictions
  220.      */
  221.     public function setSortiesSansRestrictions($sortiesSansRestrictions)
  222.     {
  223.         $this->sortiesSansRestrictions $sortiesSansRestrictions;
  224.     }
  225.     /**
  226.      * @return string
  227.      */
  228.     public function getSorties()
  229.     {
  230.         return $this->sorties;
  231.     }
  232.     /**
  233.      * @param string $sorties
  234.      */
  235.     public function setSorties($sorties)
  236.     {
  237.         $this->sorties $sorties;
  238.     }
  239.     /**
  240.      * @return \DateTime
  241.      */
  242.     public function getUntil()
  243.     {
  244.         return $this->until;
  245.     }
  246.     /**
  247.      * @param \DateTime $until
  248.      */
  249.     public function setUntil($until)
  250.     {
  251.         $this->until $until;
  252.     }
  253.     /**
  254.      * @return \DateTime
  255.      */
  256.     public function getSortiesFrom()
  257.     {
  258.         return $this->sortiesFrom;
  259.     }
  260.     /**
  261.      * @param \DateTime $sortiesFrom
  262.      */
  263.     public function setSortiesFrom($sortiesFrom)
  264.     {
  265.         $this->sortiesFrom $sortiesFrom;
  266.     }
  267.     /**
  268.      * @return \DateTime
  269.      */
  270.     public function getSortiesSansRestrictionsFrom()
  271.     {
  272.         return $this->sortiesSansRestrictionsFrom;
  273.     }
  274.     /**
  275.      * @param \DateTime $sortiesSansRestrictionsFrom
  276.      */
  277.     public function setSortiesSansRestrictionsFrom($sortiesSansRestrictionsFrom)
  278.     {
  279.         $this->sortiesSansRestrictionsFrom $sortiesSansRestrictionsFrom;
  280.     }
  281.     /**
  282.      * @return \DateTime
  283.      */
  284.     public function getTempsPartielFrom()
  285.     {
  286.         return $this->tempsPartielFrom;
  287.     }
  288.     /**
  289.      * @param \DateTime $tempsPartielFrom
  290.      */
  291.     public function setTempsPartielFrom($tempsPartielFrom)
  292.     {
  293.         $this->tempsPartielFrom $tempsPartielFrom;
  294.     }
  295.     /**
  296.      * @return \DateTime
  297.      */
  298.     public function getTempsPartielTo()
  299.     {
  300.         return $this->tempsPartielTo;
  301.     }
  302.     /**
  303.      * @param \DateTime $tempsPartielTo
  304.      */
  305.     public function setTempsPartielTo($tempsPartielTo)
  306.     {
  307.         $this->tempsPartielTo $tempsPartielTo;
  308.     }
  309.     /**
  310.      * @return Intervention
  311.      */
  312.     public function getClient()
  313.     {
  314.         return $this->client;
  315.     }
  316.     /**
  317.      * @param Intervention $client
  318.      */
  319.     public function setClient($client)
  320.     {
  321.         $this->client $client;
  322.     }
  323.     /**
  324.      * @return Intervention
  325.      */
  326.     public function getIntervention()
  327.     {
  328.         return $this->intervention;
  329.     }
  330.     /**
  331.      * @param Intervention $intervention
  332.      */
  333.     public function setIntervention($intervention)
  334.     {
  335.         $this->intervention $intervention;
  336.     }
  337.     /**
  338.      * @return string
  339.      */
  340.     public function getMotifMedical()
  341.     {
  342.         return $this->motifMedical;
  343.     }
  344.     /**
  345.      * @param string $motifMedical
  346.      */
  347.     public function setMotifMedical($motifMedical)
  348.     {
  349.         $this->motifMedical $motifMedical;
  350.     }
  351.     /**
  352.      * @return string
  353.      */
  354.     public function getStopUntilLetter()
  355.     {
  356.         return $this->stopUntilLetter;
  357.     }
  358.     /**
  359.      * @param string $stopUntilLetter
  360.      */
  361.     public function setStopUntilLetter($stopUntilLetter)
  362.     {
  363.         $this->stopUntilLetter $stopUntilLetter;
  364.     }
  365. }