ApiPlatform\Core\Metadata\Resource\ResourceMetadata::withCollectionOperations PHP 메소드

withCollectionOperations() 공개 메소드

Returns a new instance with the given collection operations.
public withCollectionOperations ( array $collectionOperations ) : self
$collectionOperations array
리턴 self
    public function withCollectionOperations(array $collectionOperations) : self
    {
        $metadata = clone $this;
        $metadata->collectionOperations = $collectionOperations;
        return $metadata;
    }