PHP Class ApiPlatform\Core\Tests\Fixtures\DummyFilter

Author: Kévin Dunglas ([email protected])
Inheritance: implements ApiPlatform\Core\Api\FilterInterface
Show file Open project: api-platform/core

Public Methods

Method Description
__construct ( array $description )
getDescription ( string $resourceClass ) : array Gets the description of this filter for the given resource.

Method Details

__construct() public method

public __construct ( array $description )
$description array

getDescription() public method

Returns an array with the filter parameter names as keys and array with the following data as values: - property: the property where the filter is applied - type: the type of the filter - required: if this filter is required - strategy: the used strategy The description can contain additional data specific to a filter.
public getDescription ( string $resourceClass ) : array
$resourceClass string
return array