1 | <?php |
||
15 | { |
||
16 | const DESTINATION_TOOLBAR = 'toolbar'; |
||
17 | const DESTINATION_PROFILER = 'profiler'; |
||
18 | const DESTINATION_BOTH = 'both'; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @var mixed |
||
27 | */ |
||
28 | private $data; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $type; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $destination; |
||
39 | |||
40 | public function __construct($name, $data, $destination = self::DESTINATION_PROFILER, $type = null) |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getName() |
||
55 | |||
56 | /** |
||
57 | * @param string name |
||
58 | * |
||
59 | * @return self |
||
60 | */ |
||
61 | public function setName($name) |
||
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function getData() |
||
75 | |||
76 | /** |
||
77 | * @param mixed data |
||
78 | * |
||
79 | * @return self |
||
80 | */ |
||
81 | public function setData($data) |
||
87 | |||
88 | /** |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getType() |
||
95 | |||
96 | /** |
||
97 | * @param string type |
||
98 | * |
||
99 | * @return self |
||
100 | */ |
||
101 | public function setType($type) |
||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getDestination() |
||
115 | |||
116 | /** |
||
117 | * @param string destination |
||
118 | * |
||
119 | * @return self |
||
120 | */ |
||
121 | public function setDestination($destination) |
||
127 | } |
||
128 |