Sapi::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the Apix Project.
5
 *
6
 * (c) Franck Cassedanne <franck at ouarz.net>
7
 *
8
 * @license http://opensource.org/licenses/BSD-3-Clause  New BSD License
9
 */
10
11
namespace Apix\Log\Logger;
12
13
/**
14
 * Sapi (Server API) log wrapper.
15
 *
16
 * @author             Franck Cassedanne <franck at ouarz.net>
17
 * @codeCoverageIgnore
18
 */
19
class Sapi extends ErrorLog
20
{
21
22
    /**
23
     * Constructor.
24
     *
25
     * @param string $destination
26
     */
27
    public function __construct($destination = \PHP_SAPI)
28
    {
29
        $this->destination = $destination;
30
        $this->type = static::SAPI;
31
    }
32
33
}
34