Completed
Push — master ( c1fd74...f54537 )
by Mihail
17:26
created

FfcmsInfoCollector::getWidgets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Ffcms\Core\Debug\Collectors;
4
5
6
use DebugBar\DataCollector\DataCollector;
7
use DebugBar\DataCollector\Renderable;
8
9
class FfcmsInfoCollector extends DataCollector implements Renderable
10
{
11
    /**
12
     * @return string
13
     */
14
    public function getName()
15
    {
16
        return 'ffcms';
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function collect()
23
    {
24
        return [
25
            'version' => \Extend\Version::VERSION,
26
            'release_date' => \Extend\Version::DATE
27
        ];
28
    }
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    public function getWidgets()
34
    {
35
        return [
36
            "ffcms_version" => [
37
                "icon" => "shield",
38
                "tooltip" => "FFCMS Version",
39
                "map" => "ffcms.version",
40
                "default" => ""
41
            ]
42
        ];
43
    }
44
}