public function setToken($value)
	{
		if (\is_array($value) && !array_key_exists('expires_in', $value) && array_key_exists('expires', $value))
		{
			$value['expires_in'] = $value['expires'];
			unset($value['expires']);
		}

		$this->setOption('accesstoken', $value);

		return $this;
	}
public function setToken($value)
	{
		if (\is_array($value) && !array_key_exists('expires_in', $value) && array_key_exists('expires', $value))
		{
			$value['expires_in'] = $value['expires'];
			unset($value['expires']);
		}

		$this->setOption('accesstoken', $value);

		return $this;
	}
public function setToken ( $ value ) { if ( \ is_array ( $ value ) && ! array_key_exists ( 'expires_in' , $ value ) && array_key_exists ( 'expires' , $ value ) ) { $ value [ 'expires_in' ] = $ value [ 'expires' ] ; unset ( $ value [ 'expires' ] ) ; } $ this -> setOption ( 'accesstoken' , $ value ) ; return $ this ; }
Set an option for the Client instance.

@param   array  $value  The access token

@return  Client  This object for method chaining

@since   1.0
Set an option for the Client instance .