protected function checkType($value, $type, $nullable = false)
    {
        if (gettype($value) === $type) {
            return true;
        }
        return $nullable && null === $value;
    }
protected function checkType($value, $type, $nullable = false)
    {
        if (gettype($value) === $type) {
            return true;
        }
        return $nullable && null === $value;
    }
protected function checkType ( $ value , $ type , $ nullable = false ) { if ( gettype ( $ value ) === $ type ) { return true ; } return $ nullable && null === $ value ; }
Check if a value is in the specified type.
@param  mixed $value
@param  string $type
@param  bool $nullable
@return bool
@see    OperationArguments::validateArgument()
@see    OperationArguments::validateArrayArgument()
Check if a value is in the specified type .