src/Entity/Collection/MemberCollection.php
private function _getIds($type)
    {
        $ids = [];
        foreach ($this->entities as $entity) {
            if ($entity->role == $type) {
                $ids[] = $entity->account->accountId;
            }
        }

        return $ids;
    }
private function _getIds($type)
    {
        $ids = [];
        foreach ($this->entities as $entity) {
            if ($entity->role == $type) {
                $ids[] = $entity->account->accountId;
            }
        }

        return $ids;
    }
@param string $type

@return array