public function add_device($device_name, $device_max_point) { $this->devices[$device_name] = $device_max_point; return $this; }