added type annotations

This commit is contained in:
tracer 2022-11-03 19:16:16 +01:00
parent 3e20a9c644
commit 2aeeb0d87e
1 changed files with 2 additions and 4 deletions

View File

@ -2,21 +2,19 @@
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;
private int $id;
#[ORM\Column(type: 'text')]
private $quote;
private string $quote;
public function getId(): ?int
{