public function getControllers(): array
    {
        $controllers = [];

        $speakers = $this->getSpeakers();
        foreach ($speakers as $speaker) {
            if (!$speaker->isCoordinator()) {
                continue;
            }
            $ip = $speaker->getIp();
            $controllers[$ip] = new Controller($speaker, $this);
        }

        return $controllers;
    }
public function getControllers(): array
    {
        $controllers = [];

        $speakers = $this->getSpeakers();
        foreach ($speakers as $speaker) {
            if (!$speaker->isCoordinator()) {
                continue;
            }
            $ip = $speaker->getIp();
            $controllers[$ip] = new Controller($speaker, $this);
        }

        return $controllers;
    }
public function getControllers ( ) : array { $ controllers = [ ] ; $ speakers = $ this -> getSpeakers ( ) ; foreach ( $ speakers as $ speaker ) { if ( ! $ speaker -> isCoordinator ( ) ) { continue ; } $ ip = $ speaker -> getIp ( ) ; $ controllers [ $ ip ] = new Controller ( $ speaker , $ this ) ; } return $ controllers ; }
Get all the coordinators on the network.

@return ControllerInterface[]
Get all the coordinators on the network .