protected function paramHasContent(array $params, string $method = 'getStream') : bool
    {
        if (!array_key_exists(self::ARRAY_KEY, $params)) {
            throw new \RuntimeException(
                sprintf(
                    'The "%s::%s" expect a file array key to build an instance of FileInfoStreamAdapter',
                    static::class,
                    $method
                )
            );
        }

        return true;
    }
protected function paramHasContent(array $params, string $method = 'getStream') : bool
    {
        if (!array_key_exists(self::ARRAY_KEY, $params)) {
            throw new \RuntimeException(
                sprintf(
                    'The "%s::%s" expect a file array key to build an instance of FileInfoStreamAdapter',
                    static::class,
                    $method
                )
            );
        }

        return true;
    }
protected function paramHasContent ( array $ params , string $ method = 'getStream' ) : bool { if ( ! array_key_exists ( self :: ARRAY_KEY , $ params ) ) { throw new \ RuntimeException ( sprintf ( 'The "%s::%s" expect a file array key to build an instance of FileInfoStreamAdapter' , static :: class , $ method ) ) ; } return true ; }
Param has content

This method aim to validate the existance of a 'inner_content' key into the parameters array.

@param array  $params The original method parameters validated by the function
@param string $method The original method name. This parameter is used to build the exception message

@throws \RuntimeException If the given parameters does not have a 'inner_content' key
@return bool
Param has content