src/KeyStore.php
public function get($user)
    {
        if (!is_string($user)) {
            throw new \InvalidArgumentException();
        }

        if (!isset($this->keys[$user])) {
            return new \ArrayIterator();
        }

        return new \ArrayIterator($this->keys[$user]);
    }
public function get($user)
    {
        if (!is_string($user)) {
            throw new \InvalidArgumentException();
        }

        if (!isset($this->keys[$user])) {
            return new \ArrayIterator();
        }

        return new \ArrayIterator($this->keys[$user]);
    }
public function get ( $ user ) { if ( ! is_string ( $ user ) ) { throw new \ InvalidArgumentException ( ) ; } if ( ! isset ( $ this -> keys [ $ user ] ) ) { return new \ ArrayIterator ( ) ; } return new \ ArrayIterator ( $ this -> keys [ $ user ] ) ; }
Retrieve a list of the keys currently
stored for the given user.

\param string $user
User whose keys should be retrieved.

\retval array
Public/private keys for the given user.
Retrieve a list of the keys currently stored for the given user .