src/Entity/Tas/TasDraw.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Tas;
  3. use App\Entity\Operation\Draw;
  4. use App\Repository\Tas\TasDrawRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TasDrawRepository::class)
  8.  */
  9. class TasDraw extends Tas
  10. {
  11.     /**
  12.      * @var Draw
  13.      * @ORM\ManyToOne(targetEntity=Draw::class, inversedBy="tas")
  14.      * @ORM\JoinColumn(nullable=true)
  15.      */
  16.     private $operation;
  17.     public function getOperation(): Draw
  18.     {
  19.         return $this->operation;
  20.     }
  21.     public function setOperation(Draw $operation): Tas
  22.     {
  23.         $this->operation $operation;
  24.         return $this;
  25.     }
  26. }