public function all($owner = null, array $params = array())
    {
        $endpoint = 'repositories';

        if (!is_null($owner)) {
            $endpoint = sprintf('repositories/%s', $owner);
        }

        return $this->getClient()->setApiVersion('2.0')->get($endpoint, $params);
    }
public function all($owner = null, array $params = array())
    {
        $endpoint = 'repositories';

        if (!is_null($owner)) {
            $endpoint = sprintf('repositories/%s', $owner);
        }

        return $this->getClient()->setApiVersion('2.0')->get($endpoint, $params);
    }
public function all ( $ owner = null , array $ params = array ( ) ) { $ endpoint = 'repositories' ; if ( ! is_null ( $ owner ) ) { $ endpoint = sprintf ( 'repositories/%s' , $ owner ) ; } return $ this -> getClient ( ) -> setApiVersion ( '2.0' ) -> get ( $ endpoint , $ params ) ; }
Get a list of repositories.

- If the caller is properly authenticated and authorized, will also return
the private repositories.
- If `$owner` is omitted, will return a list of all public repositories on Bitbucket.

@access public
@param  string           $owner  The account of the repo owner.
@param  array            $params Additional parameters
@return MessageInterface

@api 2.0
@since Method available since 0.2.0
Get a list of repositories .