36 lines
591 B
PHP
36 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\QuotesRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: QuotesRepository::class)]
|
|
class Quotes
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column(type: 'integer')]
|
|
private $id;
|
|
|
|
#[ORM\Column(type: 'text')]
|
|
private $quote;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getQuote(): ?string
|
|
{
|
|
return $this->quote;
|
|
}
|
|
|
|
public function setQuote(string $quote): self
|
|
{
|
|
$this->quote = $quote;
|
|
|
|
return $this;
|
|
}
|
|
}
|