/** * Get nonce and generate it if not present * * @return string */ public function nonce() { if (!isset($this->options['nonce'])) { $this->options['nonce'] = OauthHelper::generateKey(); } return $this->options['nonce']; }
/** * Constructor * */ public function __construct() { parent::__construct(OauthHelper::generateKey(16), OauthHelper::generateKey()); }