ApiPlatformBundle/EAV/Filter/AbstractEAVFilter.php
public function getDescription(string $resourceClass): array
    {
        $description = [];

        $properties = $this->properties;
        if (null === $properties) {
            $family = $this->getFamily($resourceClass);
            $properties = array_fill_keys(array_keys($family->getAttributes()), null);
        }

        foreach ($properties as $property => $strategy) {
            try {
                $attribute = $this->getAttribute($resourceClass, $property);
            } catch (MissingAttributeException $e) {
                continue;
            }
            $typeOfField = $this->getType($attribute);
            if (!\in_array($typeOfField, $this->supportedTypes, true)) {
                continue;
            }

            $this->appendFilterDescription($description, $attribute, $property, $typeOfField, $strategy);
        }

        return $description;
    }
public function getDescription(string $resourceClass): array
    {
        $description = [];

        $properties = $this->properties;
        if (null === $properties) {
            $family = $this->getFamily($resourceClass);
            $properties = array_fill_keys(array_keys($family->getAttributes()), null);
        }

        foreach ($properties as $property => $strategy) {
            try {
                $attribute = $this->getAttribute($resourceClass, $property);
            } catch (MissingAttributeException $e) {
                continue;
            }
            $typeOfField = $this->getType($attribute);
            if (!\in_array($typeOfField, $this->supportedTypes, true)) {
                continue;
            }

            $this->appendFilterDescription($description, $attribute, $property, $typeOfField, $strategy);
        }

        return $description;
    }
public function getDescription ( string $ resourceClass ) : array { $ description = [ ] ; $ properties = $ this -> properties ; if ( null === $ properties ) { $ family = $ this -> getFamily ( $ resourceClass ) ; $ properties = array_fill_keys ( array_keys ( $ family -> getAttributes ( ) ) , null ) ; } foreach ( $ properties as $ property => $ strategy ) { try { $ attribute = $ this -> getAttribute ( $ resourceClass , $ property ) ; } catch ( MissingAttributeException $ e ) { continue ; } $ typeOfField = $ this -> getType ( $ attribute ) ; if ( ! \ in_array ( $ typeOfField , $ this -> supportedTypes , true ) ) { continue ; } $ this -> appendFilterDescription ( $ description , $ attribute , $ property , $ typeOfField , $ strategy ) ; } return $ description ; }
Gets the description of this filter for the given resource.

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
- swagger (optional): additional parameters for the path operation, e.g. 'swagger' => ['description' => 'My
Description'] The description can contain additional data specific to a filter.

@param string $resourceClass

@throws \LogicException
@throws \Sidus\EAVModelBundle\Exception\MissingAttributeException
@throws \Sidus\EAVModelBundle\Exception\MissingFamilyException
@throws \UnexpectedValueException

@return array
Gets the description of this filter for the given resource .