method = $method; } /** * That function return current setup access authorization method. * * @return authorization_method Current authorization method. */ public function get_access_method(): authorization_method { return $this->method; } /** * This set new access method to use in the requests. * * @param authorization_method New method of the authorization. * * @return object Self to chain loading. */ public function access_method(authorization_method $method): object { $this->method = $method; return $this; } }