src/Entity/BoatModelTranslation.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="fs_boat_model_translation")
  7.  * @ORM\Entity(repositoryClass="App\Repository\BoatModelRepository")
  8.  */
  9. class BoatModelTranslation
  10. {
  11.     /**
  12.      * @ORM\Column(name="id", type="bigint")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     protected $id;    
  17.     
  18.     /**
  19.      * @ORM\Column(name="name", type="string", length=191)
  20.      */
  21.     protected $name;
  22.     
  23.     /**
  24.      * @ORM\Column(name="feets", type="string", length=191)
  25.      */
  26.     protected $feets;
  27.     
  28.     /**
  29.      * @ORM\Column(name="cabins", type="string", length=191)
  30.      */
  31.     protected $cabins;
  32.     
  33.     /**
  34.      * @ORM\Column(name="toilets", type="string", length=191)
  35.      */
  36.     protected $toilets;
  37.     
  38.     /**
  39.      * @ORM\Column(name="pax", type="string", length=191)
  40.      */
  41.     protected $pax;
  42.     
  43.     /**
  44.      * @ORM\Column(name="double_bunks", type="string", length=191)
  45.      */
  46.     protected $doubleBunks;
  47.     
  48.     /**
  49.      * @ORM\Column(name="single_bunks", type="string", length=191)
  50.      */
  51.     protected $singleBunks;
  52.     
  53.     /**
  54.      * @ORM\Column(name="length", type="string", length=191, nullable=true)
  55.      */
  56.     protected $length;
  57.     
  58.     /**
  59.      * @ORM\Column(name="beam", type="string", length=191, nullable=true)
  60.      */
  61.     protected $beam;
  62.     
  63.     /**
  64.      * @ORM\Column(name="draft", type="string", length=191, nullable=true)
  65.      */
  66.     protected $draft;
  67.     
  68.     /**
  69.      * @ORM\Column(name="engine", type="string", length=191, nullable=true)
  70.      */
  71.     protected $engine;
  72.     
  73.     /**
  74.      * @ORM\Column(name="fuel", type="string", length=191, nullable=true)
  75.      */
  76.     protected $fuel;
  77.     
  78.     /**
  79.      * @ORM\Column(name="water", type="string", length=191, nullable=true)
  80.      */
  81.     protected $water;
  82.     
  83.     /**
  84.      * @ORM\Column(name="sail", type="string", length=191, nullable=true)
  85.      */
  86.     protected $sail;
  87.     
  88.     // MANY TO ONE
  89.         /**
  90.          * @ORM\ManyToOne(targetEntity="App\Entity\BoatModel", inversedBy="translations")
  91.          * @ORM\JoinColumn(name="model_id", referencedColumnName="id")
  92.          */
  93.         private $model;
  94.         
  95.         /**
  96.          * @ORM\ManyToOne(targetEntity="App\Entity\Language", inversedBy="boatModels")
  97.          * @ORM\JoinColumn(name="language_id", referencedColumnName="id")
  98.          */
  99.         private $language;
  100.     //
  101.     public function getId(): ?string
  102.     {
  103.         return $this->id;
  104.     }
  105.     public function getName(): ?string
  106.     {
  107.         return $this->name;
  108.     }
  109.     public function setName(string $name): self
  110.     {
  111.         $this->name $name;
  112.         return $this;
  113.     }
  114.     public function getFeets(): ?string
  115.     {
  116.         return $this->feets;
  117.     }
  118.     public function setFeets(string $feets): self
  119.     {
  120.         $this->feets $feets;
  121.         return $this;
  122.     }
  123.     public function getCabins(): ?string
  124.     {
  125.         return $this->cabins;
  126.     }
  127.     public function setCabins(string $cabins): self
  128.     {
  129.         $this->cabins $cabins;
  130.         return $this;
  131.     }
  132.     public function getToilets(): ?string
  133.     {
  134.         return $this->toilets;
  135.     }
  136.     public function setToilets(string $toilets): self
  137.     {
  138.         $this->toilets $toilets;
  139.         return $this;
  140.     }
  141.     public function getPax(): ?string
  142.     {
  143.         return $this->pax;
  144.     }
  145.     public function setPax(string $pax): self
  146.     {
  147.         $this->pax $pax;
  148.         return $this;
  149.     }
  150.     public function getDoubleBunks(): ?string
  151.     {
  152.         return $this->doubleBunks;
  153.     }
  154.     public function setDoubleBunks(string $doubleBunks): self
  155.     {
  156.         $this->doubleBunks $doubleBunks;
  157.         return $this;
  158.     }
  159.     public function getSingleBunks(): ?string
  160.     {
  161.         return $this->singleBunks;
  162.     }
  163.     public function setSingleBunks(string $singleBunks): self
  164.     {
  165.         $this->singleBunks $singleBunks;
  166.         return $this;
  167.     }
  168.     public function getLength(): ?string
  169.     {
  170.         return $this->length;
  171.     }
  172.     public function setLength(?string $length): self
  173.     {
  174.         $this->length $length;
  175.         return $this;
  176.     }
  177.     public function getBeam(): ?string
  178.     {
  179.         return $this->beam;
  180.     }
  181.     public function setBeam(?string $beam): self
  182.     {
  183.         $this->beam $beam;
  184.         return $this;
  185.     }
  186.     public function getDraft(): ?string
  187.     {
  188.         return $this->draft;
  189.     }
  190.     public function setDraft(?string $draft): self
  191.     {
  192.         $this->draft $draft;
  193.         return $this;
  194.     }
  195.     public function getEngine(): ?string
  196.     {
  197.         return $this->engine;
  198.     }
  199.     public function setEngine(?string $engine): self
  200.     {
  201.         $this->engine $engine;
  202.         return $this;
  203.     }
  204.     public function getFuel(): ?string
  205.     {
  206.         return $this->fuel;
  207.     }
  208.     public function setFuel(?string $fuel): self
  209.     {
  210.         $this->fuel $fuel;
  211.         return $this;
  212.     }
  213.     public function getWater(): ?string
  214.     {
  215.         return $this->water;
  216.     }
  217.     public function setWater(?string $water): self
  218.     {
  219.         $this->water $water;
  220.         return $this;
  221.     }
  222.     public function getSail(): ?string
  223.     {
  224.         return $this->sail;
  225.     }
  226.     public function setSail(?string $sail): self
  227.     {
  228.         $this->sail $sail;
  229.         return $this;
  230.     }
  231.     public function getModel(): ?BoatModel
  232.     {
  233.         return $this->model;
  234.     }
  235.     public function setModel(?BoatModel $model): self
  236.     {
  237.         $this->model $model;
  238.         return $this;
  239.     }
  240.     public function getLanguage(): ?Language
  241.     {
  242.         return $this->language;
  243.     }
  244.     public function setLanguage(?Language $language): self
  245.     {
  246.         $this->language $language;
  247.         return $this;
  248.     }
  249. }