public function getPassword();
/** * Check credentials * * @param string $endpoint * @param AuthenticationInterface $authentication * @param ClientInterface $client * @throws Api\Exception */ public function __construct($endpoint, AuthenticationInterface $authentication, ClientInterface $client = null) { if (!$authentication->getId() || !$authentication->getPassword()) { throw new Api\Exception('Username or password is empty.', self::ERROR_EMPTY_CREDENTIALS); } parent::__construct($endpoint, $authentication, $client); }