protected function resolveType($object, MappingContext $context): string
    {
        $definition = $context->getDefinition();

        if ($definition->hasType()) {
            return $definition->getType();
        }

        return $this->typeHandler->getType($object, $context);
    }
protected function resolveType($object, MappingContext $context): string
    {
        $definition = $context->getDefinition();

        if ($definition->hasType()) {
            return $definition->getType();
        }

        return $this->typeHandler->getType($object, $context);
    }
protected function resolveType ( $ object , MappingContext $ context ) : string { $ definition = $ context -> getDefinition ( ) ; if ( $ definition -> hasType ( ) ) { return $ definition -> getType ( ) ; } return $ this -> typeHandler -> getType ( $ object , $ context ) ; }
Resolve type of resource

@param  $object
@param  MappingContext $context
@return string
Resolve type of resource