setId($data['id']); $this->id = $id; $this->created = Carbon::createFromFormat('Y-m-d H:i:s.u', $data['created']); $this->updated = Carbon::createFromFormat('Y-m-d H:i:s.u', $data['updated']); $this->ip = $data['ip']; $this->description = $data['description']; $this->status = $data['status']; } /** * @return DeviceServerId */ public function getId(): DeviceServerId { return $this->id; } /** * @return string */ public function getIp(): string { return $this->ip; } }