ApiPlatform\Core\Metadata\Property\Factory\AnnotationPropertyMetadataFactory::handleNotFound PHP Method

handleNotFound() private method

Returns the metadata from the decorated factory if available or throws an exception.
private handleNotFound ( PropertyMetadata $parentPropertyMetadata = null, string $resourceClass, string $property ) : PropertyMetadata
$parentPropertyMetadata ApiPlatform\Core\Metadata\Property\PropertyMetadata
$resourceClass string
$property string
return ApiPlatform\Core\Metadata\Property\PropertyMetadata
    private function handleNotFound(PropertyMetadata $parentPropertyMetadata = null, string $resourceClass, string $property) : PropertyMetadata
    {
        if (null !== $parentPropertyMetadata) {
            return $parentPropertyMetadata;
        }
        throw new PropertyNotFoundException(sprintf('Property "%s" of class "%s" not found.', $property, $resourceClass));
    }