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): 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()
}
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): 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)
public __construct(string $resourceClass, array $input)

Parameters

resourceClassstring
inputarray

getOperation

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

Parameters

operationNamestring
forceCollectionbool
httpOperationbool

Returns

ApiPlatform\Metadata\Operation

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop