<?phpnamespace App\Entity;use App\Entity\SonataClassificationTag;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;/** * ProductDeclinaison * * @ORM\Table(name="product_declinaison") * @ORM\Entity(repositoryClass="App\Repository\ProductDeclinaisonRepository") */class ProductDeclinaison{ /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\Product", inversedBy="declinaison") */ private $product; /** * @var string * * @ORM\Column(name="tagline", type="string", length=200) */ private $tagline; /** * @ORM\ManyToMany(targetEntity="App\Entity\SonataClassificationTag") */ private $userProfile; /** * @var int * @ORM\Column(name="position", type="integer") */ private $position; /** * Constructor */ public function __construct() { $this->userProfile = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Get tagline * * @return string */ public function getTagline() { return $this->tagline; } /** * Set tagline * * @param string $tagline * * @return ProductDeclinaison */ public function setTagline($tagline) { $this->tagline = $tagline; return $this; } /** * Get product * * @return Product */ public function getProduct() { return $this->product; } /** * Set product * * @param Product $product * * @return ProductDeclinaison */ public function setProduct(Product $product = null) { $this->product = $product; return $this; } /** * Get userProfile * * @return ArrayCollection */ public function getUserProfile() { return $this->userProfile; } /** * Get position * * @return integer */ public function getPosition() { return $this->position; } /** * Set position * * @param integer $position * * @return ProductDeclinaison */ public function setPosition($position) { $this->position = $position; return $this; } /** * Add userProfile * * @param SonataClassificationTag $userProfile * * @return ProductDeclinaison */ public function addUserProfile(SonataClassificationTag $userProfile) { $this->userProfile[] = $userProfile; return $this; } /** * Remove userProfile * * @param SonataClassificationTag $userProfile */ public function removeUserProfile(SonataClassificationTag $userProfile) { $this->userProfile->removeElement($userProfile); }}