References ResourceMetadataCollection
Reference
C
Class

ApiPlatform\Metadata\Resource\ResourceMetadataCollection

class ApiPlatform\Metadata\Resource\ResourceMetadataCollection extends ArrayObject implements Countable, Serializable, ArrayAccess, Traversable, IteratorAggregate
{
    public __construct(string $resourceClass, array $input)
    public getOperation(null|string $operationName, bool $forceCollection, bool $httpOperation, bool $forceGraphQl): ApiPlatform\Metadata\Operation
    public offsetExists($key)
    public offsetGet($key)
    public offsetSet($key, $value)
    public offsetUnset($key)
    public append($value)
    public getArrayCopy()
    public count()
    public getFlags()
    public setFlags(int $flags)
    public asort(int $flags)
    public ksort(int $flags)
    public uasort(callable $callback)
    public uksort(callable $callback)
    public natsort()
    public natcasesort()
    public unserialize(string $data)
    public serialize()
    public __serialize()
    public __unserialize(array $data)
    public getIterator()
    public exchangeArray(object|array $array)
    public setIteratorClass(string $iteratorClass)
    public getIteratorClass()
    public __debugInfo()
}

Methods

__construct

public __construct(string $resourceClass, array $input)

Parameters

resourceClassstring
inputarray

getOperation

public getOperation(null|string $operationName, bool $forceCollection, bool $httpOperation, bool $forceGraphQl): ApiPlatform\Metadata\Operation

Parameters

operationNamestring
forceCollectionbool
httpOperationbool
forceGraphQlbool

Returns

<a href="/docs/main/references/Metadata/Operation">ApiPlatform\Metadata\Operation</a>

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop