src/Entity/Source.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. use App\Repository\SourceRepository;
  7. /**
  8.  * Source
  9.  *
  10.  * @ORM\Table(name="source")
  11.  * @ORM\Entity(repositoryClass=SourceRepository::class)
  12.  */
  13. class Source
  14. {
  15.     public const SERIALIZATION_GROUP_LISTING 'source_listing';
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id", type="smallint", nullable=false)
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="IDENTITY")
  22.      * @Groups({self::SERIALIZATION_GROUP_LISTING})
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="company", type="string", length=200, nullable=false)
  29.      * @Groups({self::SERIALIZATION_GROUP_LISTING})
  30.      */
  31.     private $company;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="comment", type="text", length=65535, nullable=true, options={"default"="NULL"})
  36.      */
  37.     private $comment null;
  38.     /**
  39.      * @var bool
  40.      *
  41.      * @ORM\Column(name="last_import", type="boolean", nullable=false)
  42.      */
  43.     private $lastImport false;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCompany(): ?string
  49.     {
  50.         return $this->company;
  51.     }
  52.     public function setCompany(string $company): self
  53.     {
  54.         $this->company $company;
  55.         return $this;
  56.     }
  57.     public function getComment(): ?string
  58.     {
  59.         return $this->comment;
  60.     }
  61.     public function setComment(?string $comment): self
  62.     {
  63.         $this->comment $comment;
  64.         return $this;
  65.     }
  66.     public function isLastImport(): ?bool
  67.     {
  68.         return $this->lastImport;
  69.     }
  70.     public function setLastImport(bool $lastImport): self
  71.     {
  72.         $this->lastImport $lastImport;
  73.         return $this;
  74.     }
  75. }