Completed
Push — develop ( 179711...c18b9f )
by Peter
01:26
created

ServicesPanel::getPanel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Webino (http://webino.sk/)
4
 *
5
 * @link        https://github.com/webino/WebinoDebug/ for the canonical source repository
6
 * @copyright   Copyright (c) 2018 Webino, s. r. o. (http://webino.sk/)
7
 * @license     BSD-3-Clause
8
 */
9
10
namespace WebinoDebug\Debugger;
11
12
use Zend\ServiceManager\ServiceManager;
13
14
/**
15
 * Class ServicesPanel
16
 */
17
class ServicesPanel extends AbstractPanel implements
18
    PanelInterface,
19
    PanelInitInterface
20
{
21
    /**
22
     * @var ServiceManager
23
     */
24
    private $services;
25
26
    /**
27
     * @var string
28
     */
29
    protected $title = 'Service container';
30
31
    /**
32
     * @param ServiceManager $services
33
     */
34
    public function init(ServiceManager $services)
35
    {
36
        $this->services = $services;
37
    }
38
39
    /**
40
     * @return ServiceManager
41
     */
42
    public function getServices()
43
    {
44
        return $this->services;
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function getTab()
51
    {
52
        return $this->createIcon('services');
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function getPanel()
59
    {
60
        return $this->renderTemplate('services.panel');
61
    }
62
}
63