Completed
Push — master ( 4e360d...80bc96 )
by Daan van
07:27
created

Container::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SAML2\Compat\Ssp;
4
5
use SAML2\Compat\AbstractContainer;
6
use SimpleSAML_Utilities;
7
8
class Container extends AbstractContainer
9
{
10
    /**
11
     * @var \Psr\Log\LoggerInterface
12
     */
13
    protected $logger;
14
15
    /**
16
     * Create a new SimpleSAMLphp compatible container.
17
     */
18
    public function __construct()
19
    {
20
        $this->logger = new Logger();
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getLogger()
27
    {
28
        return $this->logger;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function generateId()
35
    {
36
        return SimpleSAML_Utilities::generateID();
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function debugMessage($message, $type)
43
    {
44
        SimpleSAML_Utilities::debugMessage($message, $type);
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function redirect($url, $data = array())
51
    {
52
        SimpleSAML_Utilities::redirectTrustedURL($url, $data);
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function postRedirect($url, $data = array())
59
    {
60
        SimpleSAML_Utilities::postRedirect($url, $data);
61
    }
62
}
63