ApiPlatformBundle/DataProvider/FamilyDataProvider.php
public function getCollection(string $resourceClass, string $operationName = null)
    {
        if (!is_a($resourceClass, FamilyInterface::class, true)) {
            throw new ResourceClassNotSupportedException();
        }

        return $this->familyRegistry->getFamilies();
    }
public function getCollection(string $resourceClass, string $operationName = null)
    {
        if (!is_a($resourceClass, FamilyInterface::class, true)) {
            throw new ResourceClassNotSupportedException();
        }

        return $this->familyRegistry->getFamilies();
    }
public function getCollection ( string $ resourceClass , string $ operationName = null ) { if ( ! is_a ( $ resourceClass , FamilyInterface :: class , true ) ) { throw new ResourceClassNotSupportedException ( ) ; } return $ this -> familyRegistry -> getFamilies ( ) ; }
Retrieves a collection.

@param string      $resourceClass
@param string|null $operationName

@throws ResourceClassNotSupportedException

@return FamilyInterface[]|PaginatorInterface|\Traversable
Retrieves a collection .