public function getSoftwareVersion() { if (isset($this->attributes->swversion)) { return $this->attributes->swversion; } return null; }