<?phpnamespace App\Entity\Gos;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * GoogleMerchantCategory * * @ORM\Table(name="google_merchant_category") * @ORM\Entity(repositoryClass="App\Repository\GoogleMerchantCategoryRepository") */class GoogleMerchantCategory{ /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var int * * @ORM\Column(name="categoryId", type="integer") */ private $categoryId; /** * @var string * * @ORM\Column(name="categoryName", type="string", length=255) */ private $categoryName; /** * @ORM\OneToMany(targetEntity="App\Entity\Gos\GoogleMerchantFeed", mappedBy="googleMerchantCategory") */ private $googleMerchantFeed; public function __toString() { return (string)$this->categoryName; } /** * Constructor */ public function __construct() { $this->googleMerchantFeed = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set categoryId * * @param integer $categoryId * * @return GoogleMerchantCategory */ public function setCategoryId($categoryId) { $this->categoryId = $categoryId; return $this; } /** * Get categoryId * * @return int */ public function getCategoryId() { return $this->categoryId; } /** * Set categoryName * * @param string $categoryName * * @return GoogleMerchantCategory */ public function setCategoryName($categoryName) { $this->categoryName = $categoryName; return $this; } /** * Get categoryName * * @return string */ public function getCategoryName() { return $this->categoryName; } /** * Add googleMerchantFeed * * @param \App\Entity\Gos\GoogleMerchantFeed $googleMerchantFeed * * @return GoogleMerchantCategory */ public function addGoogleMerchantFeed(\App\Entity\Gos\GoogleMerchantFeed $googleMerchantFeed) { $this->googleMerchantFeed[] = $googleMerchantFeed; return $this; } /** * Remove googleMerchantFeed * * @param \App\Entity\Gos\GoogleMerchantFeed $googleMerchantFeed */ public function removeGoogleMerchantFeed(\App\Entity\Gos\GoogleMerchantFeed $googleMerchantFeed) { $this->googleMerchantFeed->removeElement($googleMerchantFeed); } /** * Get googleMerchantFeed * * @return \Doctrine\Common\Collections\Collection */ public function getGoogleMerchantFeed() { return $this->googleMerchantFeed; }}