public __construct ( string $action, Context $context = null ) | ||
$action | string | Nonce action. |
$context | Context | Optional. Nonce context object. Defaults to null. |
public function __construct($action, Context $context = null)
{
$this->action = (string) $action;
$this->context = $context;
}