<?php
namespace App\Entity;
use App\Entity\Documentation\HouseGuide;
use App\Entity\Documentation\MasterGuide;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Airplane
*
* @ORM\Table(name="airplane")
* @ORM\Entity()
*/
class Airplane
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var float
*
* @ORM\Column(name="cabin_total_volume", type="float", precision=10, scale=0, nullable=false)
*/
private $cabinTotalVolume;
/**
* @var float
*
* @ORM\Column(name="cabin_maximum_weight", type="float", precision=10, scale=0, nullable=false)
*/
private $cabinMaximumWeight;
/**
* @var float
*
* @ORM\Column(name="storage_total_volume", type="float", precision=10, scale=0, nullable=false)
*/
private $storageTotalVolume;
/**
* @var float
*
* @ORM\Column(name="storage_maximum_weight", type="float", precision=10, scale=0, nullable=false)
*/
private $storageMaximumWeight;
/**
* @var bool
*
* @ORM\Column(name="status", type="boolean", nullable=false)
*/
private $status = '0';
/**
* @ORM\OneToMany(targetEntity=HouseGuide::class, mappedBy="airplane")
*/
private $houseGuides;
/**
* @ORM\Column(type="string", length=255)
*/
private $model;
/**
* @ORM\OneToMany(targetEntity=MasterGuide::class, mappedBy="airplane")
*/
private $masterGuides;
public function __construct()
{
$this->houseGuides = new ArrayCollection();
$this->masterGuides = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCabinTotalVolume(): ?float
{
return $this->cabinTotalVolume;
}
public function setCabinTotalVolume(float $cabinTotalVolume): self
{
$this->cabinTotalVolume = $cabinTotalVolume;
return $this;
}
public function getCabinMaximumWeight(): ?float
{
return $this->cabinMaximumWeight;
}
public function setCabinMaximumWeight(float $cabinMaximumWeight): self
{
$this->cabinMaximumWeight = $cabinMaximumWeight;
return $this;
}
public function getStorageTotalVolume(): ?float
{
return $this->storageTotalVolume;
}
public function setStorageTotalVolume(float $storageTotalVolume): self
{
$this->storageTotalVolume = $storageTotalVolume;
return $this;
}
public function getStorageMaximumWeight(): ?float
{
return $this->storageMaximumWeight;
}
public function setStorageMaximumWeight(float $storageMaximumWeight): self
{
$this->storageMaximumWeight = $storageMaximumWeight;
return $this;
}
public function getOutDate(): ?\DateTimeInterface
{
return $this->outDate;
}
public function setOutDate(\DateTimeInterface $outDate): self
{
$this->outDate = $outDate;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
/**
* @return Collection<int, HouseGuide>
*/
public function getHouseGuides(): Collection
{
return $this->houseGuides;
}
public function addHouseGuide(HouseGuide $houseGuide): self
{
if (!$this->houseGuides->contains($houseGuide)) {
$this->houseGuides[] = $houseGuide;
$houseGuide->setAirplane($this);
}
return $this;
}
public function removeHouseGuide(HouseGuide $houseGuide): self
{
if ($this->houseGuides->removeElement($houseGuide)) {
// set the owning side to null (unless already changed)
if ($houseGuide->getAirplane() === $this) {
$houseGuide->setAirplane(null);
}
}
return $this;
}
public function getModel(): ?string
{
return $this->model;
}
public function setModel(string $model): self
{
$this->model = $model;
return $this;
}
/**
* @return Collection<int, MasterGuide>
*/
public function getMasterGuides(): Collection
{
return $this->masterGuides;
}
public function addMasterGuide(MasterGuide $masterGuide): self
{
if (!$this->masterGuides->contains($masterGuide)) {
$this->masterGuides[] = $masterGuide;
$masterGuide->setAirplane($this);
}
return $this;
}
public function removeMasterGuide(MasterGuide $masterGuide): self
{
if ($this->masterGuides->removeElement($masterGuide)) {
// set the owning side to null (unless already changed)
if ($masterGuide->getAirplane() === $this) {
$masterGuide->setAirplane(null);
}
}
return $this;
}
}