src/Entity/Main/ApiPropertiesTypes.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Main;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiPropertiesTypes
  6.  *
  7.  * @ORM\Table(name="api_properties_types")
  8.  * @ORM\Entity(repositoryClass="App\Repository\Main\ApiPropertiesTypesRepository")
  9.  */
  10. class ApiPropertiesTypes
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=50, nullable=true, options={"default"="NULL"})
  24.      */
  25.     private $name 'NULL';
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getName(): ?string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function setName(?string $name): self
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39. }