151 lines
2.5 KiB
PHP
151 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\ReviewSourceRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity(repositoryClass=ReviewSourceRepository::class)
|
|
*/
|
|
class ReviewSource
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity=City::class, inversedBy="reviewSources")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
private $city;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=255)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $countRow;
|
|
|
|
/**
|
|
* @ORM\Column(type="boolean")
|
|
*/
|
|
private $active;
|
|
|
|
/**
|
|
* @ORM\Column(type="float")
|
|
*/
|
|
private $rating;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity=Filial::class, inversedBy="reviewSources")
|
|
*/
|
|
private $filial;
|
|
|
|
/**
|
|
* @ORM\Column(type="date")
|
|
*/
|
|
private $dateCreate;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getCity(): ?City
|
|
{
|
|
return $this->city;
|
|
}
|
|
|
|
public function setCity(City $city): self
|
|
{
|
|
$this->city = $city;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(string $name): self
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getCountRow(): ?int
|
|
{
|
|
return $this->countRow;
|
|
}
|
|
|
|
public function setCountRow(int $countRow): self
|
|
{
|
|
$this->countRow = $countRow;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getActive(): ?bool
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
public function setActive(bool $active): self
|
|
{
|
|
$this->active = $active;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getRating(): ?float
|
|
{
|
|
return $this->rating;
|
|
}
|
|
|
|
public function setRating(float $rating): self
|
|
{
|
|
$this->rating = $rating;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDateCreate(): ?\DateTimeInterface
|
|
{
|
|
return $this->dateCreate;
|
|
}
|
|
|
|
public function setDateCreate(\DateTimeInterface $dateCreate): self
|
|
{
|
|
$this->dateCreate = $dateCreate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isActive(): ?bool
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
public function getFilial(): ?Filial
|
|
{
|
|
return $this->filial;
|
|
}
|
|
|
|
public function setFilial(?Filial $filial): static
|
|
{
|
|
$this->filial = $filial;
|
|
|
|
return $this;
|
|
}
|
|
}
|