public function getTypeOfResult(): string
    {
        switch (gettype($this->decodedData['result'])) {
            case 'array':
            case 'integer':
            case 'boolean':
                return gettype($this->decodedData['result']);
            default:
                throw new InvalidResultType(
                    sprintf('The passed data type ("%s") is not supported', gettype($this->decodedData['result']))
                );
        }
    }
public function getTypeOfResult(): string
    {
        switch (gettype($this->decodedData['result'])) {
            case 'array':
            case 'integer':
            case 'boolean':
                return gettype($this->decodedData['result']);
            default:
                throw new InvalidResultType(
                    sprintf('The passed data type ("%s") is not supported', gettype($this->decodedData['result']))
                );
        }
    }
public function getTypeOfResult ( ) : string { switch ( gettype ( $ this -> decodedData [ 'result' ] ) ) { case 'array' : case 'integer' : case 'boolean' : return gettype ( $ this -> decodedData [ 'result' ] ) ; default : throw new InvalidResultType ( sprintf ( 'The passed data type ("%s") is not supported' , gettype ( $ this -> decodedData [ 'result' ] ) ) ) ; } }
To quickly find out what type of request we are dealing with

Unused so far

@return string
@throws InvalidResultType
To quickly find out what type of request we are dealing with