name = $subnet->getName(); $this->netmask = $subnet->getNetmask(); $this->ipAddress = $subnet->getIpAddress(); $this->nextServer = $subnet->getNextServer(); $this->bootFileName = $subnet->getBootFileName(); $this->synchronized = $subnet->isSynchronized(); $this->serverId = $subnet->getServerId(); $this->clients = $subnet->getClients()->map( fn(Client $client) => new ClientOutput($client) )->toArray(); $this->createdAt = $subnet->getCreatedAt(); $this->createdBy = $subnet->getCreatedBy(); } }