Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class LogHandler implements LogHandlerInterface |
||
22 | { |
||
23 | const DEFAULT_PATH = '.logger'; |
||
24 | const DEFAULT_EXTENSION = '.log'; |
||
25 | |||
26 | /** @var string The path. */ |
||
27 | private $path; |
||
28 | |||
29 | /** |
||
30 | * Construct a log handler object with the given path. |
||
31 | * |
||
32 | * @param string $path = self::DEFAULT_PATH |
||
33 | */ |
||
34 | 2 | public function __construct($path = self::DEFAULT_PATH) |
|
35 | { |
||
36 | 2 | $this->path = $path; |
|
37 | 2 | } |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 2 | public function update(SubjectInterface $subject, $arguments = null) |
|
54 | 1 | } |
|
55 | } |
||
56 |