protected function getUploadedResource()
    {
        if ($this->getMappingResultsForProperty()->hasErrors()) {
            return null;
        }
        $resourceObject = $this->getPropertyValue();
        if ($resourceObject instanceof PersistentResource) {
            return $resourceObject;
        }
        return $this->propertyMapper->convert($this->getValueAttribute(), PersistentResource::class);
    }
protected function getUploadedResource()
    {
        if ($this->getMappingResultsForProperty()->hasErrors()) {
            return null;
        }
        $resourceObject = $this->getPropertyValue();
        if ($resourceObject instanceof PersistentResource) {
            return $resourceObject;
        }
        return $this->propertyMapper->convert($this->getValueAttribute(), PersistentResource::class);
    }
protected function getUploadedResource ( ) { if ( $ this -> getMappingResultsForProperty ( ) -> hasErrors ( ) ) { return null ; } $ resourceObject = $ this -> getPropertyValue ( ) ; if ( $ resourceObject instanceof PersistentResource ) { return $ resourceObject ; } return $ this -> propertyMapper -> convert ( $ this -> getValueAttribute ( ) , PersistentResource :: class ) ; }
Returns a previously uploaded resource.
If errors occurred during property mapping for this property, NULL is returned

@return PersistentResource
Returns a previously uploaded resource . If errors occurred during property mapping for this property NULL is returned