src/Entity/MedecinDossier.php line 21

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 App\Entity\Intervention;
  7. use App\Entity\SpecialiteDocteur as SpecialiteDocteur;
  8. use ApiPlatform\Core\Annotation\ApiResource;
  9. use App\Repository\OrdonnanceRepository;
  10. use App\Entity\Client;
  11. use Symfony\Component\Serializer\Annotation\Groups;
  12. use App\Entity\Docteur;
  13. /**
  14.  * @ORM\Table()
  15.  * @ORM\Entity()
  16.  */
  17. class MedecinDossier
  18. {
  19.     use TimestampableTrait;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="id", type="integer")
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     private $id;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="description", type="text", nullable=true)
  32.      *
  33.      */
  34.     private $comment;
  35.     /**
  36.      * @var Docteur
  37.      * @ORM\ManyToOne(
  38.      *   targetEntity=Docteur::class, inversedBy="docteurs"
  39.      * )
  40.      * @Groups({"read"})
  41.      */
  42.     private $docteur;
  43.     /**
  44.      * @var Client
  45.      * @ORM\ManyToOne(
  46.      *   targetEntity=Client::class
  47.      * )
  48.      * @Groups({"read"})
  49.      */
  50.     private $client;
  51.     /**
  52.      * @return int
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * @param int $id
  60.      */
  61.     public function setId($id)
  62.     {
  63.         $this->id $id;
  64.     }
  65.     /**
  66.      * @return string
  67.      */
  68.     public function getComment()
  69.     {
  70.         return $this->comment;
  71.     }
  72.     /**
  73.      * @param string $comment
  74.      */
  75.     public function setComment($comment)
  76.     {
  77.         $this->comment $comment;
  78.     }
  79.     /**
  80.      * @return Docteur
  81.      */
  82.     public function getDocteur()
  83.     {
  84.         return $this->docteur;
  85.     }
  86.     /**
  87.      * @param Docteur $docteur
  88.      */
  89.     public function setDocteur($docteur)
  90.     {
  91.         $this->docteur $docteur;
  92.     }
  93.     /**
  94.      * @return Client
  95.      */
  96.     public function getClient()
  97.     {
  98.         return $this->client;
  99.     }
  100.     /**
  101.      * @param Client $client
  102.      */
  103.     public function setClient($client)
  104.     {
  105.         $this->client $client;
  106.     }
  107. }