public function validateParameters(&$parameters)
    {
        if (!isset($parameters['username']))
        {
            throw new InvalidArgumentException(
                'The \'username\' parameter must be defined for the Password grant type',
                InvalidArgumentException::MISSING_PARAMETER
            );
        }
        elseif (!isset($parameters['password']))
        {
            throw new InvalidArgumentException(
                'The \'password\' parameter must be defined for the Password grant type',
                InvalidArgumentException::MISSING_PARAMETER
            );
        }
    }
public function validateParameters(&$parameters)
    {
        if (!isset($parameters['username']))
        {
            throw new InvalidArgumentException(
                'The \'username\' parameter must be defined for the Password grant type',
                InvalidArgumentException::MISSING_PARAMETER
            );
        }
        elseif (!isset($parameters['password']))
        {
            throw new InvalidArgumentException(
                'The \'password\' parameter must be defined for the Password grant type',
                InvalidArgumentException::MISSING_PARAMETER
            );
        }
    }
public function validateParameters ( & $ parameters ) { if ( ! isset ( $ parameters [ 'username' ] ) ) { throw new InvalidArgumentException ( 'The \'username\' parameter must be defined for the Password grant type' , InvalidArgumentException :: MISSING_PARAMETER ) ; } elseif ( ! isset ( $ parameters [ 'password' ] ) ) { throw new InvalidArgumentException ( 'The \'password\' parameter must be defined for the Password grant type' , InvalidArgumentException :: MISSING_PARAMETER ) ; } }
Adds a specific Handling of the parameters

@return array of Specific parameters to be sent.
@param  mixed  $parameters the parameters array (passed by reference)
Adds a specific Handling of the parameters