Blame view

framework/library/sentry/Raven/Context.php 516 Bytes
4d84a934   曹明   初始代码提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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;
    }
}