src/Metadata/Property/PropertyMetadata.php
public function withSubresource(SubresourceMetadata $subresource = null): self
    {
        $metadata = clone $this;
        $metadata->subresource = $subresource;

        return $metadata;
    }
public function withSubresource(SubresourceMetadata $subresource = null): self
    {
        $metadata = clone $this;
        $metadata->subresource = $subresource;

        return $metadata;
    }
public function withSubresource ( SubresourceMetadata $ subresource = null ) : self { $ metadata = clone $ this ; $ metadata -> subresource = $ subresource ; return $ metadata ; }
Returns a new instance with the given subresource.

@param SubresourceMetadata $subresource
Returns a new instance with the given subresource .