src/Entity/Eshop3D.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Service class represents simple model of Eshop3D entity
  4.  *
  5.  * $Project: Alliancemarkets2 $
  6.  * $Id$
  7.  *
  8.  * @package alliancemarkets2
  9.  * @author George Matyas <webexciter@yahoo.com>
  10.  * @version $Revision$
  11.  */
  12. namespace App\Entity;
  13. use Doctrine\Common\Collections\ArrayCollection;
  14. use Doctrine\Common\Collections\Collection;
  15. use Doctrine\DBAL\Types\Types;
  16. use Doctrine\ORM\Mapping as ORM;
  17. /**
  18.  * @ORM\Entity(repositoryClass="App\EntityRepo\Eshop3DRepo")
  19.  * @ORM\Table(name="eshop_3d")
  20.  */
  21. class Eshop3D
  22. {
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */
  28.     protected $eshop3DId=0;
  29.     /**
  30.      * @ORM\Column(type="string", length=100)
  31.      */
  32.     protected $eshop3DName;
  33.     /**
  34.      * @ORM\Column(type="integer", length=100)
  35.      */
  36.     protected $userId=0;
  37.     /**
  38.      * @ORM\Column(type="string", length=100, nullable=true)
  39.      */
  40.     protected $eshop3DDescription;
  41.     /**
  42.      * @ORM\Column(type="date", nullable=true)
  43.      */
  44.     protected $dateCreated;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     protected $xmlSourcePath;
  49.     /**
  50.      * @ORM\ManyToOne(targetEntity="Eshop")
  51.      * @ORM\JoinColumn(name="eshop_id", referencedColumnName="eshop_id")
  52.      */
  53.     protected $eshop;
  54.     /**
  55.      * @ORM\Column(type="string", length=255, nullable=true)
  56.      */
  57.     protected $eshopLogoUrl;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity="Gallery")
  60.      * @ORM\JoinColumn(name="texture_gallery_id", referencedColumnName="gallery_id")
  61.      */
  62.     protected $textureGallery;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     protected $template3DPath "eshopBasic3D.vrml.php";
  67.     /**
  68.      * Many Eshops have Many Languages.
  69.      * @ORM\ManyToMany(targetEntity="FreeWorld3D",cascade={"persist"})
  70.      * @ORM\JoinTable(name="eshop3D_freeWorld3D",
  71.      *      joinColumns={@ORM\JoinColumn(name="eshop3did", referencedColumnName="eshop3_did")},
  72.      *      inverseJoinColumns={@ORM\JoinColumn(name="free_world3did", referencedColumnName="free_world3_did", unique=false)}
  73.      *      )
  74.      */
  75.     protected $freeWorlds;
  76.     public function __construct()
  77.     {
  78.         $this->freeWorlds = new ArrayCollection();
  79.     }
  80.     public function getEshop3DId(): ?int
  81.     {
  82.         return $this->eshop3DId;
  83.     }
  84.     public function getEshop3DName(): ?string
  85.     {
  86.         return $this->eshop3DName;
  87.     }
  88.     public function setEshop3DName(string $eshop3DName): static
  89.     {
  90.         $this->eshop3DName $eshop3DName;
  91.         return $this;
  92.     }
  93.     public function getUserId(): ?int
  94.     {
  95.         return $this->userId;
  96.     }
  97.     public function setUserId(int $userId): static
  98.     {
  99.         $this->userId $userId;
  100.         return $this;
  101.     }
  102.     public function getEshop3DDescription(): ?string
  103.     {
  104.         return $this->eshop3DDescription;
  105.     }
  106.     public function setEshop3DDescription(?string $eshop3DDescription): static
  107.     {
  108.         $this->eshop3DDescription $eshop3DDescription;
  109.         return $this;
  110.     }
  111.     public function getDateCreated(): ?\DateTimeInterface
  112.     {
  113.         return $this->dateCreated;
  114.     }
  115.     public function setDateCreated(?\DateTimeInterface $dateCreated): static
  116.     {
  117.         $this->dateCreated $dateCreated;
  118.         return $this;
  119.     }
  120.     public function getXmlSourcePath(): ?string
  121.     {
  122.         return $this->xmlSourcePath;
  123.     }
  124.     public function setXmlSourcePath(?string $xmlSourcePath): static
  125.     {
  126.         $this->xmlSourcePath $xmlSourcePath;
  127.         return $this;
  128.     }
  129.     public function getEshopLogoUrl(): ?string
  130.     {
  131.         return $this->eshopLogoUrl;
  132.     }
  133.     public function setEshopLogoUrl(?string $eshopLogoUrl): static
  134.     {
  135.         $this->eshopLogoUrl $eshopLogoUrl;
  136.         return $this;
  137.     }
  138.     public function getTemplate3DPath(): ?string
  139.     {
  140.         return $this->template3DPath;
  141.     }
  142.     public function setTemplate3DPath(?string $template3DPath): static
  143.     {
  144.         $this->template3DPath $template3DPath;
  145.         return $this;
  146.     }
  147.     public function getEshop(): ?Eshop
  148.     {
  149.         return $this->eshop;
  150.     }
  151.     public function setEshop(?Eshop $eshop): static
  152.     {
  153.         $this->eshop $eshop;
  154.         return $this;
  155.     }
  156.     public function getTextureGallery(): ?Gallery
  157.     {
  158.         return $this->textureGallery;
  159.     }
  160.     public function setTextureGallery(?Gallery $textureGallery): static
  161.     {
  162.         $this->textureGallery $textureGallery;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return Collection<int, FreeWorld3D>
  167.      */
  168.     public function getFreeWorlds(): Collection
  169.     {
  170.         return $this->freeWorlds;
  171.     }
  172.     public function addFreeWorld(FreeWorld3D $freeWorld): static
  173.     {
  174.         if (!$this->freeWorlds->contains($freeWorld)) {
  175.             $this->freeWorlds->add($freeWorld);
  176.         }
  177.         return $this;
  178.     }
  179.     public function removeFreeWorld(FreeWorld3D $freeWorld): static
  180.     {
  181.         $this->freeWorlds->removeElement($freeWorld);
  182.         return $this;
  183.     }
  184. }