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

FfcmsInfoCollector   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A collect() 0 7 1
A getWidgets() 0 11 1
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
}