src/Entity/Industry.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IndustryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Overblog\GraphQLBundle\Annotation\Field;
  6. #[ORM\Entity(repositoryClassIndustryRepository::class)]
  7. class Industry extends BasicEntity
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type"integer")]
  12.     #[Field(name"id"type"int")]
  13.     private $id;
  14.     #[ORM\Column(type"string"length255)]
  15.     #[Field(name"title"type"string")]
  16.     private $title;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getTitle(): ?string
  22.     {
  23.         return $this->title;
  24.     }
  25.     public function setTitle(string $title): self
  26.     {
  27.         $this->title $title;
  28.         return $this;
  29.     }
  30.     public function __toString()
  31.     {
  32.         return $this->getTitle();
  33.     }
  34. }