src/main/php/routing/api/Resource.php
public function addLink(string $rel, $uri): Link
    {
        return $this->links->add($rel, $uri);
    }
public function addLink(string $rel, $uri): Link
    {
        return $this->links->add($rel, $uri);
    }
public function addLink ( string $ rel , $ uri ) : Link { return $ this -> links -> add ( $ rel , $ uri ) ; }
adds a link for this resource

@param   string  $rel  relation of this link to the resource
@param   string  $uri  actual uri
@return  \stubbles\webapp\routing\api\Link
adds a link for this resource