/** * Add Link * * @param Link $link * @return $this */ public function add(Link $link) { $this->links[$link->getRelation()] = $link; return $this; }