collection-crud/src/Entity/Film.php

248 lines
4.6 KiB
PHP
Raw Normal View History

2018-02-14 16:19:26 -05:00
<?php declare(strict_types=1);
namespace App\Entity;
2018-02-14 16:19:26 -05:00
use Doctrine\ORM\Mapping as ORM;
/**
* Camera
*/
#[ORM\Table(name: 'film', schema: 'camera')]
#[ORM\Entity]
class Film
{
#[ORM\Id]
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
private int $id;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'brand', type: 'string', nullable: false)]
2022-02-17 14:00:50 -05:00
private string $brand;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'product_line', type: 'string', nullable: true)]
private ?string $productLine = null;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_name', type: 'string', nullable: false)]
2022-02-17 14:00:50 -05:00
private string $filmName;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_alias', type: 'string', nullable: true)]
private ?string $filmAlias = null;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_speed_asa', type: 'integer', nullable: false)]
2022-02-17 14:00:50 -05:00
private int $filmSpeedAsa;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_speed_din', type: 'integer', nullable: false)]
2022-02-17 14:00:50 -05:00
private int $filmSpeedDin;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_format', type: 'string', nullable: false)]
2022-02-17 14:00:50 -05:00
private string $filmFormat;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'film_base', type: 'string', nullable: false, options: ['default' => 'Cellulose Triacetate'])]
2022-02-17 14:00:50 -05:00
private string $filmBase = 'Cellulose Triacetate';
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'unused_rolls', type: 'integer', nullable: false, options: ['default' => 0])]
2022-02-17 14:00:50 -05:00
private int $unusedRolls = 0;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'rolls_in_camera', type: 'integer', nullable: false, options: ['default' => 0])]
2022-02-17 14:00:50 -05:00
private int $rollsInCamera = 0;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'developed_rolls', type: 'integer', nullable: false, options: ['default' => 0])]
2022-02-17 14:00:50 -05:00
private int $developedRolls = 0;
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'chemistry', type: 'string', nullable: false, options: ['default' => 'C-41'])]
2022-02-17 14:00:50 -05:00
private string $chemistry = 'C-41';
2022-02-18 11:34:25 -05:00
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
private ?string $notes = null;
2022-02-18 11:34:25 -05:00
2018-02-15 09:48:57 -05:00
public function getId(): int
{
return $this->id;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getBrand(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->brand;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
public function setBrand(string $brand): self
{
$this->brand = $brand;
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getProductLine(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->productLine;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @param string $productLine
2018-02-14 16:19:26 -05:00
*/
2018-02-19 10:48:42 -05:00
public function setProductLine(?string $productLine): self
2018-02-14 16:19:26 -05:00
{
$this->productLine = $productLine;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getFilmName(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->filmName;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setFilmName(string $filmName): self
2018-02-14 16:19:26 -05:00
{
$this->filmName = $filmName;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-19 10:48:42 -05:00
/**
* @return string
*/
public function getFilmAlias(): ?string
{
return $this->filmAlias;
}
2022-02-18 11:34:25 -05:00
2018-02-19 10:48:42 -05:00
public function setFilmAlias(string $filmAlias): self
{
$this->filmAlias = $filmAlias;
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return int
*/
2018-02-15 09:48:57 -05:00
public function getFilmSpeedAsa(): ?int
2018-02-14 16:19:26 -05:00
{
return $this->filmSpeedAsa;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setFilmSpeedAsa(int $filmSpeedAsa): self
2018-02-14 16:19:26 -05:00
{
$this->filmSpeedAsa = $filmSpeedAsa;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return int
*/
2018-02-15 09:48:57 -05:00
public function getFilmSpeedDin(): ?int
2018-02-14 16:19:26 -05:00
{
return $this->filmSpeedDin;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setFilmSpeedDin(int $filmSpeedDin): self
2018-02-14 16:19:26 -05:00
{
$this->filmSpeedDin = $filmSpeedDin;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getFilmFormat(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->filmFormat;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setFilmFormat(string $filmFormat): self
2018-02-14 16:19:26 -05:00
{
$this->filmFormat = $filmFormat;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getFilmBase(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->filmBase;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setFilmBase(string $filmBase): self
2018-02-14 16:19:26 -05:00
{
$this->filmBase = $filmBase;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return int
*/
2018-02-15 09:48:57 -05:00
public function getUnusedRolls(): ?int
2018-02-14 16:19:26 -05:00
{
return $this->unusedRolls;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setUnusedRolls(int $unusedRolls): self
2018-02-14 16:19:26 -05:00
{
$this->unusedRolls = $unusedRolls;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
/**
* @return int
*/
public function getRollsInCamera(): ?int
{
return $this->rollsInCamera;
}
2022-02-18 11:34:25 -05:00
public function setRollsInCamera(int $rollsInCamera): self
{
$this->rollsInCamera = $rollsInCamera;
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return int
*/
2018-02-15 09:48:57 -05:00
public function getDevelopedRolls(): ?int
2018-02-14 16:19:26 -05:00
{
return $this->developedRolls;
2018-02-14 16:19:26 -05:00
}
2022-02-18 11:34:25 -05:00
public function setDevelopedRolls(int $developedRolls): self
2018-02-14 16:19:26 -05:00
{
$this->developedRolls = $developedRolls;
2018-02-14 16:19:26 -05:00
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
2018-02-15 09:48:57 -05:00
public function getChemistry(): ?string
2018-02-14 16:19:26 -05:00
{
return $this->chemistry;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
public function setChemistry(string $chemistry): self
{
$this->chemistry = $chemistry;
return $this;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
/**
* @return string
*/
public function getNotes(): ?string
{
return $this->notes;
}
2022-02-18 11:34:25 -05:00
2018-02-14 16:19:26 -05:00
public function setNotes(string $notes): self
{
$this->notes = $notes;
return $this;
}
}