src/php/Validator.php
public function validateDeveloperKey($key)
    {
        if ('' === $key) {
            return $this;
        }

        if (!is_string($key) || strlen($key) !== 48) {
            throw new InvalidArgumentException(
                'Developer key must be a string of exactly 48 characters',
                401
            );
        }

        return $this;
    }
public function validateDeveloperKey($key)
    {
        if ('' === $key) {
            return $this;
        }

        if (!is_string($key) || strlen($key) !== 48) {
            throw new InvalidArgumentException(
                'Developer key must be a string of exactly 48 characters',
                401
            );
        }

        return $this;
    }
public function validateDeveloperKey ( $ key ) { if ( '' === $ key ) { return $ this ; } if ( ! is_string ( $ key ) || strlen ( $ key ) !== 48 ) { throw new InvalidArgumentException ( 'Developer key must be a string of exactly 48 characters' , 401 ) ; } return $ this ; }
Validates the given developer key.

@param string $key Developer key.

@return $this

@throws InvalidArgumentException Thrown if the developer key is invalid.
Validates the given developer key .