src/php/Validator.php
public function validateApplication($application)
    {
        if (!is_string($application)
            || strlen($application) > 256
            || strlen($application) < 1
        ) {
            throw new InvalidArgumentException(
                'Application name must be a non empty string of at most 256 ' .
                'characters',
                400
            );
        }

        return $this;
    }
public function validateApplication($application)
    {
        if (!is_string($application)
            || strlen($application) > 256
            || strlen($application) < 1
        ) {
            throw new InvalidArgumentException(
                'Application name must be a non empty string of at most 256 ' .
                'characters',
                400
            );
        }

        return $this;
    }
public function validateApplication ( $ application ) { if ( ! is_string ( $ application ) || strlen ( $ application ) > 256 || strlen ( $ application ) < 1 ) { throw new InvalidArgumentException ( 'Application name must be a non empty string of at most 256 ' . 'characters' , 400 ) ; } return $ this ; }
Validates the given application name.

@param string $application Application name.

@return $this

@throws InvalidArgumentException Thrown if the application name is invalid.
Validates the given application name .