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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* @see https://github.com/laminas/laminas-log for the canonical source repository
* @copyright https://github.com/laminas/laminas-log/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-log/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Log\Writer\FirePhp;
use FirePHP;
class FirePhpBridge implements FirePhpInterface
{
/**
* FirePHP instance
*
* @var FirePHP
*/
protected $firephp;
/**
* Constructor
*
* @param FirePHP $firephp
*/
public function __construct(FirePHP $firephp)
{
$this->firephp = $firephp;
}
/**
* Retrieve FirePHP instance
*
* @return FirePHP
*/
public function getFirePhp()
{
return $this->firephp;
}
/**
* Determine whether or not FirePHP is enabled
*
* @return bool
*/
public function getEnabled()
{
return $this->firephp->getEnabled();
}
/**
* Log an error message
*
* @param string $line
* @param string|null $label
* @return void
*/
public function error($line, $label = null)
{
return $this->firephp->error($line, $label);
}
/**
* Log a warning
*
* @param string $line
* @param string|null $label
* @return void
*/
public function warn($line, $label = null)
{
return $this->firephp->warn($line, $label);
}
/**
* Log informational message
*
* @param string $line
* @param string|null $label
* @return void
*/
public function info($line, $label = null)
{
return $this->firephp->info($line, $label);
}
/**
* Log a trace
*
* @param string $line
* @return void
*/
public function trace($line)
{
return $this->firephp->trace($line);
}
/**
* Log a message
*
* @param string $line
* @param string|null $label
* @return void
*/
public function log($line, $label = null)
{
return $this->firephp->trace($line, $label);
}
}