public function version($version) { if (!in_array($version, [1, 3, 4, 5])) { throw new \InvalidArgumentException('Only 1, 3, 4 and 5 versions are available'); } $this->version = func_get_args(); return $this; }