collection-crud/src/Entity/Lenses.php

58 lines
1.3 KiB
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-30 15:06:13 -05:00
namespace App\Entity;
2017-11-30 15:06:13 -05:00
use App\Repository\LensesRepository;
2017-11-30 15:06:13 -05:00
use Doctrine\ORM\Mapping as ORM;
/**
* Camera.lenses
*/
2022-09-29 20:09:31 -04:00
#[ORM\Table(name: 'lenses', schema: 'collection')]
#[ORM\Entity(repositoryClass: LensesRepository::class)]
2017-11-30 15:06:13 -05:00
class Lenses
{
2022-03-03 10:53:48 -05:00
use LensTrait;
2022-02-18 11:34:25 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'id', type: 'integer', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\SequenceGenerator(sequenceName: 'camera.lenses_id_seq', allocationSize: 1, initialValue: 1)]
private int $id;
2022-02-18 11:34:25 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'received', type: 'boolean', nullable: FALSE)]
private bool $received = FALSE;
2022-03-03 10:53:48 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'formerly_owned', type: 'boolean', nullable: FALSE)]
private bool $formerlyOwned = FALSE;
2022-09-29 20:09:31 -04:00
public function getId(): ?int
{
return $this->id;
}
public function isReceived(): ?bool
{
return $this->received;
}
public function setReceived(bool $received): self
{
$this->received = $received;
return $this;
}
public function isFormerlyOwned(): ?bool
{
return $this->formerlyOwned;
}
public function setFormerlyOwned(bool $formerlyOwned): self
{
$this->formerlyOwned = $formerlyOwned;
return $this;
}
2017-11-30 15:06:13 -05:00
}