2018-02-14 16:19:26 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2018-02-14 16:42:39 -05:00
|
|
|
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 {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false)
|
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY")
|
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="brand", type="string", nullable=false)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $brand;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
2018-02-19 10:48:42 -05:00
|
|
|
* @ORM\Column(name="product_line", type="string", nullable=true)
|
2018-02-14 16:19:26 -05:00
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private ?string $productLine;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="film_name", type="string", nullable=false)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $filmName;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
2018-02-19 10:48:42 -05:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="film_alias", type="string", nullable=true)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private ?string $filmAlias;
|
2018-02-19 10:48:42 -05:00
|
|
|
|
2018-02-14 16:19:26 -05:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="film_speed_asa", type="integer", nullable=false)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $filmSpeedAsa;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="film_speed_din", type="integer", nullable=false)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $filmSpeedDin;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="film_format", type="string", nullable=false)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $filmFormat;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @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';
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="unused_rolls", type="integer", nullable=false, options={"default"=0})
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $unusedRolls = 0;
|
2018-02-26 15:25:15 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @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;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="developed_rolls", type="integer", nullable=false, options={"default"=0})
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private int $developedRolls = 0;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @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';
|
2018-02-14 16:19:26 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="notes", type="text", nullable=true)
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
private ?string $notes;
|
2018-02-14 16:19:26 -05:00
|
|
|
|
2018-02-15 09:48:57 -05:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getId(): int
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $brand
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public function setBrand(string $brand): self
|
|
|
|
{
|
|
|
|
$this->brand = $brand;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getProductLine(): ?string
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->productLine;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param string $productLine
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-19 10:48:42 -05:00
|
|
|
public function setProductLine(?string $productLine): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->productLine = $productLine;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getFilmName(): ?string
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->filmName;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param string $filmName
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setFilmName(string $filmName): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->filmName = $filmName;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2018-02-19 10:48:42 -05:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getFilmAlias(): ?string
|
|
|
|
{
|
|
|
|
return $this->filmAlias;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $filmAlias
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public function setFilmAlias(string $filmAlias): self
|
|
|
|
{
|
|
|
|
$this->filmAlias = $filmAlias;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->filmSpeedAsa;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param int $filmSpeedAsa
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setFilmSpeedAsa(int $filmSpeedAsa): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->filmSpeedAsa = $filmSpeedAsa;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getFilmSpeedDin(): ?int
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->filmSpeedDin;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param int $filmSpeedDin
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setFilmSpeedDin(int $filmSpeedDin): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->filmSpeedDin = $filmSpeedDin;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getFilmFormat(): ?string
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->filmFormat;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param string $filmFormat
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setFilmFormat(string $filmFormat): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->filmFormat = $filmFormat;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getFilmBase(): ?string
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->filmBase;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param string $filmBase
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setFilmBase(string $filmBase): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->filmBase = $filmBase;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
2018-02-15 09:48:57 -05:00
|
|
|
public function getUnusedRolls(): ?int
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->unusedRolls;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param int $unusedRolls
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setUnusedRolls(int $unusedRolls): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->unusedRolls = $unusedRolls;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2018-02-26 15:25:15 -05:00
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getRollsInCamera(): ?int
|
|
|
|
{
|
|
|
|
return $this->rollsInCamera;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $rollsInCamera
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public function setRollsInCamera(int $rollsInCamera): self
|
|
|
|
{
|
|
|
|
$this->rollsInCamera = $rollsInCamera;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
return $this->developedRolls;
|
2018-02-14 16:19:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-02-14 17:01:18 -05:00
|
|
|
* @param int $developedRolls
|
2018-02-14 16:19:26 -05:00
|
|
|
* @return self
|
|
|
|
*/
|
2018-02-14 17:01:18 -05:00
|
|
|
public function setDevelopedRolls(int $developedRolls): self
|
2018-02-14 16:19:26 -05:00
|
|
|
{
|
2018-02-14 17:01:18 -05:00
|
|
|
$this->developedRolls = $developedRolls;
|
2018-02-14 16:19:26 -05:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $chemistry
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public function setChemistry(string $chemistry): self
|
|
|
|
{
|
|
|
|
$this->chemistry = $chemistry;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getNotes(): ?string
|
|
|
|
{
|
|
|
|
return $this->notes;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $notes
|
|
|
|
* @return self
|
|
|
|
*/
|
|
|
|
public function setNotes(string $notes): self
|
|
|
|
{
|
|
|
|
$this->notes = $notes;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|