12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Storage for additional client context.
- *
- * @package raven
- */
- class Raven_Context
- {
- /**
- * @var array
- */
- public $tags;
- /**
- * @var array
- */
- public $extra;
- /**
- * @var array|null
- */
- public $user;
-
- public function __construct()
- {
- $this->clear();
- }
-
- /**
- * Clean up existing context.
- */
- public function clear()
- {
- $this->tags = array();
- $this->extra = array();
- $this->user = null;
- }
- }
|