-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogger.php
More file actions
68 lines (61 loc) · 1.27 KB
/
Logger.php
File metadata and controls
68 lines (61 loc) · 1.27 KB
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
<?php
namespace BaseModule\Logger;
use SimpleCollection\EntityInterface;
/**
* Logger to log something
*
* @copyright Felix Buchheim
* @author Felix Buchheim <hanibal4nothing@gmail.com>
*/
class Logger extends \Zend\Log\Logger implements EntityInterface
{
/**
* Priority of this logger
*
* @var int
*/
protected $priority;
/**
* Logger constructor.
*
* @param int $iPriority
* @param null $aOptions
*/
public function __construct($iPriority, $aOptions = null)
{
$this->setPriority($iPriority);
parent::__construct($aOptions);
}
/**
* The getter function for the property <em>$iPriority</em>.
*
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* The setter function for the property <em>$iPriority</em>.
*
* @param int $iPriority
*
* @return $this Returns the instance of this class.
*/
public function setPriority($iPriority)
{
$this->priority = $iPriority;
return $this;
}
/**
* Dummy function, dont use this
*
* @deprecated
*
* @return array
*/
public function toArray()
{
return array();
}
}