2018-07-23 09:52:00 -04:00
|
|
|
<?php declare(strict_types=1);
|
2018-07-11 09:18:46 -04:00
|
|
|
|
|
|
|
namespace App\Entity;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Table(name: 'film_format', schema: 'camera')]
|
|
|
|
#[ORM\Entity]
|
2018-07-23 09:52:00 -04:00
|
|
|
class FilmFormat
|
|
|
|
{
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Id]
|
|
|
|
#[ORM\GeneratedValue]
|
|
|
|
#[ORM\Column(type: 'integer')]
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $id;
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'number_id', type: 'integer')]
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $numberId;
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'name', type: 'string')]
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $name;
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2018-07-11 09:18:46 -04:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId(): ?int
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2018-07-11 09:18:46 -04:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getNumberId(): ?int
|
|
|
|
{
|
|
|
|
return $this->numberId;
|
|
|
|
}
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2018-07-11 09:18:46 -04:00
|
|
|
public function setNumberId(int $numberId): self
|
|
|
|
{
|
|
|
|
$this->numberId = $numberId;
|
|
|
|
return $this;
|
|
|
|
}
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2018-07-11 09:18:46 -04:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName(): ?string
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
2022-02-18 11:34:25 -05:00
|
|
|
|
2018-07-11 09:18:46 -04:00
|
|
|
public function setName(string $name): self
|
|
|
|
{
|
|
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|