<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use App\Repository\SourceRepository;
/**
* Source
*
* @ORM\Table(name="source")
* @ORM\Entity(repositoryClass=SourceRepository::class)
*/
class Source
{
public const SERIALIZATION_GROUP_LISTING = 'source_listing';
/**
* @var int
*
* @ORM\Column(name="id", type="smallint", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @Groups({self::SERIALIZATION_GROUP_LISTING})
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="company", type="string", length=200, nullable=false)
* @Groups({self::SERIALIZATION_GROUP_LISTING})
*/
private $company;
/**
* @var string|null
*
* @ORM\Column(name="comment", type="text", length=65535, nullable=true, options={"default"="NULL"})
*/
private $comment = null;
/**
* @var bool
*
* @ORM\Column(name="last_import", type="boolean", nullable=false)
*/
private $lastImport = false;
public function getId(): ?int
{
return $this->id;
}
public function getCompany(): ?string
{
return $this->company;
}
public function setCompany(string $company): self
{
$this->company = $company;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function isLastImport(): ?bool
{
return $this->lastImport;
}
public function setLastImport(bool $lastImport): self
{
$this->lastImport = $lastImport;
return $this;
}
}