id; } /** * Set url * * @param string $url */ public function setUrl($url) { $this->url = $url; } /** * Get url * * @return string */ public function getUrl() { return $this->url; } /** * Set name * * @param string $name */ public function setName($name) { $this->name = $name; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set date_added * * @param datetime $dateAdded */ public function setDateAdded($dateAdded) { $this->date_added = $dateAdded; } /** * Get date_added * * @return datetime */ public function getDateAdded() { return $this->date_added; } /** * Set type * * @param ElementType $type */ public function setType(ElementType $type) { $this->type = $type; } /** * Get type * * @return ElementType */ public function getType() { return $this->type; } public function __construct() { $this->tags = new ArrayCollection(); } /** * Add tags * * @param Tag $tags */ public function addTag(Tag $tags) { $this->tags[] = $tags; } /** * Get tags * * @return Doctrine\Common\Collections\Collection */ public function getTags() { return $this->tags; } /** * Set owner * * @param User $owner */ public function setOwner(User $owner) { $this->owner = $owner; } /** * Get owner * * @return User */ public function getOwner() { return $this->owner; } /** * Add elements_favorites * * @param UsersElementsFavorites $elementsFavorites */ public function addUsersElementsFavorites(UsersElementsFavorites $elementsFavorites) { $this->elements_favorites[] = $elementsFavorites; } /** * Get elements_favorites * * @return Doctrine\Common\Collections\Collection */ public function getElementsFavorites() { return $this->elements_favorites; } /** * Set group * * @param Group $group */ public function setGroup(Group $group) { $this->group = $group; } /** * Get group * * @return Group */ public function getGroup() { return $this->group; } }