added type annotations
This commit is contained in:
parent
3e20a9c644
commit
2aeeb0d87e
|
@ -2,21 +2,19 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use ApiPlatform\Core\Annotation\ApiResource;
|
|
||||||
use App\Repository\QuotesRepository;
|
use App\Repository\QuotesRepository;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: QuotesRepository::class)]
|
#[ORM\Entity(repositoryClass: QuotesRepository::class)]
|
||||||
#[ApiResource]
|
|
||||||
class Quotes
|
class Quotes
|
||||||
{
|
{
|
||||||
#[ORM\Id]
|
#[ORM\Id]
|
||||||
#[ORM\GeneratedValue]
|
#[ORM\GeneratedValue]
|
||||||
#[ORM\Column(type: 'integer')]
|
#[ORM\Column(type: 'integer')]
|
||||||
private $id;
|
private int $id;
|
||||||
|
|
||||||
#[ORM\Column(type: 'text')]
|
#[ORM\Column(type: 'text')]
|
||||||
private $quote;
|
private string $quote;
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue