protected function checkValidity() {
		if($this->validTo && $this->validTo < time() && isSet($this->opts['username']) && isSet($this->opts['password']))
			$this->requestToken();
	}
protected function checkValidity() {
		if($this->validTo && $this->validTo < time() && isSet($this->opts['username']) && isSet($this->opts['password']))
			$this->requestToken();
	}
protected function checkValidity ( ) { if ( $ this -> validTo && $ this -> validTo < time ( ) && isSet ( $ this -> opts [ 'username' ] ) && isSet ( $ this -> opts [ 'password' ] ) ) $ this -> requestToken ( ) ; }
Get a new token if the current one expired.
Get a new token if the current one expired .