<?php
namespace App\Entity\Gos;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* GoogleMerchantTags
*
* @ORM\Table(name="google_merchant_tags")
* @UniqueEntity(fields="name", message="This name already exists!")
* @ORM\Entity(repositoryClass="App\Repository\GoogleMerchantTagRepository")
*/
class GoogleMerchantTag
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=100, unique=true)
*/
private $name;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="customLabel0")
*/
private $customLabels0;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="customLabel1")
*/
private $customLabels1;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="customLabel2")
*/
private $customLabels2;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="customLabel3")
*/
private $customLabels3;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="customLabel4")
*/
private $customLabels4;
public function __construct()
{
$this->customLabels0 = new \Doctrine\Common\Collections\ArrayCollection();
$this->customLabels1 = new \Doctrine\Common\Collections\ArrayCollection();
$this->customLabels2 = new \Doctrine\Common\Collections\ArrayCollection();
$this->customLabels3 = new \Doctrine\Common\Collections\ArrayCollection();
$this->customLabels4 = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return GoogleMerchantTag
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
public function getAllLabels()
{
return new \Doctrine\Common\Collections\ArrayCollection(
array_merge(
$this->customLabels0->toArray(),
$this->customLabels1->toArray(),
$this->customLabels2->toArray(),
$this->customLabels3->toArray(),
$this->customLabels4->toArray()
)
);
}
/**
* Add customLabels0
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels0
*
* @return GoogleMerchantTag
*/
public function addCustomLabels0(\App\Entity\Gos\GoogleMerchantFeed $customLabels0)
{
$this->customLabels0[] = $customLabels0;
return $this;
}
/**
* Remove customLabels0
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels0
*/
public function removeCustomLabels0(\App\Entity\Gos\GoogleMerchantFeed $customLabels0)
{
$this->customLabels0->removeElement($customLabels0);
}
/**
* Get customLabels0
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomLabels0()
{
return $this->customLabels0;
}
/**
* Add customLabels1
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels1
*
* @return GoogleMerchantTag
*/
public function addCustomLabels1(\App\Entity\Gos\GoogleMerchantFeed $customLabels1)
{
$this->customLabels1[] = $customLabels1;
return $this;
}
/**
* Remove customLabels1
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels1
*/
public function removeCustomLabels1(\App\Entity\Gos\GoogleMerchantFeed $customLabels1)
{
$this->customLabels1->removeElement($customLabels1);
}
/**
* Get customLabels1
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomLabels1()
{
return $this->customLabels1;
}
/**
* Add customLabels2
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels2
*
* @return GoogleMerchantTag
*/
public function addCustomLabels2(\App\Entity\Gos\GoogleMerchantFeed $customLabels2)
{
$this->customLabels2[] = $customLabels2;
return $this;
}
/**
* Remove customLabels2
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels2
*/
public function removeCustomLabels2(\App\Entity\Gos\GoogleMerchantFeed $customLabels2)
{
$this->customLabels2->removeElement($customLabels2);
}
/**
* Get customLabels2
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomLabels2()
{
return $this->customLabels2;
}
/**
* Add customLabels3
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels3
*
* @return GoogleMerchantTag
*/
public function addCustomLabels3(\App\Entity\Gos\GoogleMerchantFeed $customLabels3)
{
$this->customLabels3[] = $customLabels3;
return $this;
}
/**
* Remove customLabels3
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels3
*/
public function removeCustomLabels3(\App\Entity\Gos\GoogleMerchantFeed $customLabels3)
{
$this->customLabels3->removeElement($customLabels3);
}
/**
* Get customLabels3
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomLabels3()
{
return $this->customLabels3;
}
/**
* Add customLabels4
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels4
*
* @return GoogleMerchantTag
*/
public function addCustomLabels4(\App\Entity\Gos\GoogleMerchantFeed $customLabels4)
{
$this->customLabels4[] = $customLabels4;
return $this;
}
/**
* Remove customLabels4
*
* @param \App\Entity\Gos\GoogleMerchantFeed $customLabels4
*/
public function removeCustomLabels4(\App\Entity\Gos\GoogleMerchantFeed $customLabels4)
{
$this->customLabels4->removeElement($customLabels4);
}
/**
* Get customLabels4
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomLabels4()
{
return $this->customLabels4;
}
}