public function getController(): ControllerInterface
    {
        $controllers = $this->getControllers();
        if ($controller = reset($controllers)) {
            return $controller;
        }

        throw new NotFoundException("Unable to find any controllers on the current network");
    }
public function getController(): ControllerInterface
    {
        $controllers = $this->getControllers();
        if ($controller = reset($controllers)) {
            return $controller;
        }

        throw new NotFoundException("Unable to find any controllers on the current network");
    }
public function getController ( ) : ControllerInterface { $ controllers = $ this -> getControllers ( ) ; if ( $ controller = reset ( $ controllers ) ) { return $ controller ; } throw new NotFoundException ( "Unable to find any controllers on the current network" ) ; }
Get a Controller instance from the network.

Useful for managing playlists/alarms, as these need a controller but it doesn't matter which one.

@return ControllerInterface
Get a Controller instance from the network .