src/Px.php
public function keyword($keyword)
    {
        $list = $this->keywordList($keyword);
        if (empty($list)) {
            throw new RuntimeException(sprintf('Keyword "%s" does not exist.', $keyword));
        }

        return $list[0];
    }
public function keyword($keyword)
    {
        $list = $this->keywordList($keyword);
        if (empty($list)) {
            throw new RuntimeException(sprintf('Keyword "%s" does not exist.', $keyword));
        }

        return $list[0];
    }
public function keyword ( $ keyword ) { $ list = $ this -> keywordList ( $ keyword ) ; if ( empty ( $ list ) ) { throw new RuntimeException ( sprintf ( 'Keyword "%s" does not exist.' , $ keyword ) ) ; } return $ list [ 0 ] ; }
Returns the first keyword with a given name.

@param string $keyword

@return object
Returns the first keyword with a given name .