Spookie/src/Entity/Quotes.php

38 lines
651 B
PHP

<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\QuotesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: QuotesRepository::class)]
#[ApiResource]
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;
}
}