ApiPlatform\Core\Metadata\Resource\ResourceMetadata::withItemOperations PHP Méthode

withItemOperations() public méthode

Returns a new instance with the given item operations.
public withItemOperations ( array $itemOperations ) : self
$itemOperations array
Résultat self
    public function withItemOperations(array $itemOperations) : self
    {
        $metadata = clone $this;
        $metadata->itemOperations = $itemOperations;
        return $metadata;
    }