public function __construct(Speaker $speaker, Network $network)
{
if (!$speaker->isCoordinator()) {
throw new \InvalidArgumentException("You cannot create a Controller instance from a Speaker that is not the coordinator of it's group");
}
$this->ip = $speaker->ip;
$this->device = $speaker->device;
$this->network = $network;
$this->name = $speaker->name;
$this->room = $speaker->room;
$this->group = $speaker->getGroup();
$this->uuid = $speaker->getUuid();
}