public function append($key, $href, array $meta=[]) {
		Validator::checkMemberName($key);
		
		if (isset($this->links[$key]) === false) {
			$this->addLinksArray($key, new LinksArray());
		}
		elseif ($this->links[$key] instanceof LinksArray === false) {
			throw new DuplicateException('can not add to key "'.$key.'", it is not an array of links');
		}
		
		$this->links[$key]->add($href, $meta);
	}
public function append($key, $href, array $meta=[]) {
		Validator::checkMemberName($key);
		
		if (isset($this->links[$key]) === false) {
			$this->addLinksArray($key, new LinksArray());
		}
		elseif ($this->links[$key] instanceof LinksArray === false) {
			throw new DuplicateException('can not add to key "'.$key.'", it is not an array of links');
		}
		
		$this->links[$key]->add($href, $meta);
	}
public function append ( $ key , $ href , array $ meta = [ ] ) { Validator :: checkMemberName ( $ key ) ; if ( isset ( $ this -> links [ $ key ] ) === false ) { $ this -> addLinksArray ( $ key , new LinksArray ( ) ) ; } elseif ( $ this -> links [ $ key ] instanceof LinksArray === false ) { throw new DuplicateException ( 'can not add to key "' . $ key . '", it is not an array of links' ) ; } $ this -> links [ $ key ] -> add ( $ href , $ meta ) ; }
appends a link to an array of links under a specific key

@see LinksArray for use cases

@param string $key
@param string $href
@param array  $meta optional, if given a LinkObject is added, otherwise a link string is added

@throws DuplicateException if another link is already using that $key but is not an array
appends a link to an array of links under a specific key