productsSold; } /** * @return mixed */ public function addProductsSold( $product ) { return $this->productsSold[] = $product; } /** * @param mixed $productsSold */ public function setProductsSold( $productsSold ) { $this->productsSold = $productsSold; } /** * @ORM\OneToMany(targetEntity="AppBundle\Entity\SellRecord", mappedBy="user") */ private $sellRecords; /** * @return mixed */ public function getSellRecords() { return $this->sellRecords; } /** * @param mixed $sellRecords */ public function setSellRecords( $sellRecords ) { $this->sellRecords = $sellRecords; } /** * @param mixed $sellRecords */ public function addSellRecords( $sellRecords ) { $this->sellRecords[] = $sellRecords; } /** * @return mixed */ public function getGoogleAccessToken() { return $this->googleAccessToken; } /** * @param mixed $googleAccessToken */ public function setGoogleAccessToken( $googleAccessToken ) { $this->googleAccessToken = $googleAccessToken; } /** * @return mixed */ public function getProducts() { return $this->products; } /** * @param mixed $products */ public function setProducts( $products ) { $this->products = $products; } /** * @return mixed */ public function getCategories() { return $this->categories; } /** * @param mixed $categories */ public function setCategories( $categories ) { $this->categories = $categories; } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set googleId * * @param string $googleId * * @return User */ public function setGoogleId( $googleId ) { $this->googleId = $googleId; return $this; } /** * Get googleId * * @return string */ public function getGoogleId() { return $this->googleId; } /** * Add product * * @param \AppBundle\Entity\Product $product * * @return User */ public function addProduct(\AppBundle\Entity\Product $product) { $this->products[] = $product; return $this; } /** * Remove product * * @param \AppBundle\Entity\Product $product */ public function removeProduct(\AppBundle\Entity\Product $product) { $this->products->removeElement($product); } /** * Remove productsSold * * @param \AppBundle\Entity\ProductSold $productsSold */ public function removeProductsSold(\AppBundle\Entity\ProductSold $productsSold) { $this->productsSold->removeElement($productsSold); } /** * Add category * * @param \AppBundle\Entity\ProductCategory $category * * @return User */ public function addCategory(\AppBundle\Entity\ProductCategory $category) { $this->categories[] = $category; return $this; } /** * Remove category * * @param \AppBundle\Entity\ProductCategory $category */ public function removeCategory(\AppBundle\Entity\ProductCategory $category) { $this->categories->removeElement($category); } /** * Add sellRecord * * @param \AppBundle\Entity\SellRecord $sellRecord * * @return User */ public function addSellRecord(\AppBundle\Entity\SellRecord $sellRecord) { $this->sellRecords[] = $sellRecord; return $this; } /** * Remove sellRecord * * @param \AppBundle\Entity\SellRecord $sellRecord */ public function removeSellRecord(\AppBundle\Entity\SellRecord $sellRecord) { $this->sellRecords->removeElement($sellRecord); } }