public function getResourceTypes()
    {
        $types = [];
        foreach ($this as $entity) {
            $types[] = $entity->getType();
        }
        return array_unique($types);
    }
public function getResourceTypes()
    {
        $types = [];
        foreach ($this as $entity) {
            $types[] = $entity->getType();
        }
        return array_unique($types);
    }
public function getResourceTypes ( ) { $ types = [ ] ; foreach ( $ this as $ entity ) { $ types [ ] = $ entity -> getType ( ) ; } return array_unique ( $ types ) ; }
Gets a unique list of all entity types assigned to this collection.

@return  array
Gets a unique list of all entity types assigned to this collection .