protected function resolveTypeDescription($value): string
    {
        $type = gettype($value);

        if ($type === 'object') {
            return 'an instance of ' . get_class($value);
        }

        if ($type === 'integer') {
            return 'an integer';
        }

        return 'a ' . $type;
    }
protected function resolveTypeDescription($value): string
    {
        $type = gettype($value);

        if ($type === 'object') {
            return 'an instance of ' . get_class($value);
        }

        if ($type === 'integer') {
            return 'an integer';
        }

        return 'a ' . $type;
    }
protected function resolveTypeDescription ( $ value ) : string { $ type = gettype ( $ value ) ; if ( $ type === 'object' ) { return 'an instance of ' . get_class ( $ value ) ; } if ( $ type === 'integer' ) { return 'an integer' ; } return 'a ' . $ type ; }
Resolve description of value's type

@param  $value
@return string
Resolve description of value s type