<?php
/**
* Service class represents simple model of Eshop3D entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\Eshop3DRepo")
* @ORM\Table(name="eshop_3d")
*/
class Eshop3D
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $eshop3DId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $eshop3DName;
/**
* @ORM\Column(type="integer", length=100)
*/
protected $userId=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $eshop3DDescription;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateCreated;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $xmlSourcePath;
/**
* @ORM\ManyToOne(targetEntity="Eshop")
* @ORM\JoinColumn(name="eshop_id", referencedColumnName="eshop_id")
*/
protected $eshop;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $eshopLogoUrl;
/**
* @ORM\ManyToOne(targetEntity="Gallery")
* @ORM\JoinColumn(name="texture_gallery_id", referencedColumnName="gallery_id")
*/
protected $textureGallery;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $template3DPath = "eshopBasic3D.vrml.php";
/**
* Many Eshops have Many Languages.
* @ORM\ManyToMany(targetEntity="FreeWorld3D",cascade={"persist"})
* @ORM\JoinTable(name="eshop3D_freeWorld3D",
* joinColumns={@ORM\JoinColumn(name="eshop3did", referencedColumnName="eshop3_did")},
* inverseJoinColumns={@ORM\JoinColumn(name="free_world3did", referencedColumnName="free_world3_did", unique=false)}
* )
*/
protected $freeWorlds;
public function __construct()
{
$this->freeWorlds = new ArrayCollection();
}
public function getEshop3DId(): ?int
{
return $this->eshop3DId;
}
public function getEshop3DName(): ?string
{
return $this->eshop3DName;
}
public function setEshop3DName(string $eshop3DName): static
{
$this->eshop3DName = $eshop3DName;
return $this;
}
public function getUserId(): ?int
{
return $this->userId;
}
public function setUserId(int $userId): static
{
$this->userId = $userId;
return $this;
}
public function getEshop3DDescription(): ?string
{
return $this->eshop3DDescription;
}
public function setEshop3DDescription(?string $eshop3DDescription): static
{
$this->eshop3DDescription = $eshop3DDescription;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(?\DateTimeInterface $dateCreated): static
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getXmlSourcePath(): ?string
{
return $this->xmlSourcePath;
}
public function setXmlSourcePath(?string $xmlSourcePath): static
{
$this->xmlSourcePath = $xmlSourcePath;
return $this;
}
public function getEshopLogoUrl(): ?string
{
return $this->eshopLogoUrl;
}
public function setEshopLogoUrl(?string $eshopLogoUrl): static
{
$this->eshopLogoUrl = $eshopLogoUrl;
return $this;
}
public function getTemplate3DPath(): ?string
{
return $this->template3DPath;
}
public function setTemplate3DPath(?string $template3DPath): static
{
$this->template3DPath = $template3DPath;
return $this;
}
public function getEshop(): ?Eshop
{
return $this->eshop;
}
public function setEshop(?Eshop $eshop): static
{
$this->eshop = $eshop;
return $this;
}
public function getTextureGallery(): ?Gallery
{
return $this->textureGallery;
}
public function setTextureGallery(?Gallery $textureGallery): static
{
$this->textureGallery = $textureGallery;
return $this;
}
/**
* @return Collection<int, FreeWorld3D>
*/
public function getFreeWorlds(): Collection
{
return $this->freeWorlds;
}
public function addFreeWorld(FreeWorld3D $freeWorld): static
{
if (!$this->freeWorlds->contains($freeWorld)) {
$this->freeWorlds->add($freeWorld);
}
return $this;
}
public function removeFreeWorld(FreeWorld3D $freeWorld): static
{
$this->freeWorlds->removeElement($freeWorld);
return $this;
}
}