public function setVersion($version) { if ($version <= 40 && $version >= 0) { $this->version = $version; } return $this; }