src/Entity/Slave/OperationSubjectMapping.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Slave;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Table(name="eposm_s_operation_subject_mapping")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Slave\OperationSubjectMappingRepository")
  10.  */
  11. class OperationSubjectMapping
  12. {
  13.     public function __toString()
  14.     {
  15.         return $this->getValue();
  16.     }
  17.     /**
  18.      * @ORM\Column(name="id", type="bigint")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     
  24.     /**
  25.      * @ORM\Column(name="value", type="string", length=191)
  26.      */
  27.     protected $value;
  28.         
  29.     // ManyToOne
  30.         /**
  31.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Operation", inversedBy="subjectMappings")
  32.          * @ORM\JoinColumn(name="operation_id", referencedColumnName="id")
  33.          */
  34.         private $operation;
  35.     //
  36.     public function getId(): ?string
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getValue(): ?string
  41.     {
  42.         return $this->value;
  43.     }
  44.     public function setValue(string $value): self
  45.     {
  46.         $this->value $value;
  47.         return $this;
  48.     }
  49.     public function getOperation(): ?Operation
  50.     {
  51.         return $this->operation;
  52.     }
  53.     public function setOperation(?Operation $operation): self
  54.     {
  55.         $this->operation $operation;
  56.         return $this;
  57.     }
  58. }