src/Entity/Standard.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StandardRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=StandardRepository::class)
  7.  */
  8. class Standard
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=ElementSettings::class, inversedBy="standards")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $fence;
  25.     /**
  26.      * @ORM\Column(type="json")
  27.      */
  28.     private $definition = [];
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getName(): ?string
  34.     {
  35.         return $this->name;
  36.     }
  37.     public function setName(string $name): self
  38.     {
  39.         $this->name $name;
  40.         return $this;
  41.     }
  42.     public function getFence(): ?ElementSettings
  43.     {
  44.         return $this->fence;
  45.     }
  46.     public function setFence(?ElementSettings $fence): self
  47.     {
  48.         $this->fence $fence;
  49.         return $this;
  50.     }
  51.     public function getDefinition(): ?array
  52.     {
  53.         return $this->definition;
  54.     }
  55.     public function setDefinition(array $definition): self
  56.     {
  57.         $this->definition $definition;
  58.         return $this;
  59.     }
  60. }