GroupManagerTrait   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setGroup() 0 4 1
A getGroup() 0 4 1
A run() 0 6 1
1
<?php
2
namespace Finder\Spider\Traits;
3
4
use Support\Helps\DebugHelper;
5
6
/**
7
 * Outputs events information to the console.
8
 *
9
 * @see TriggerableInterface
10
 */
11
trait GroupManagerTrait
12
{
13
    protected $group = false;
14
15
    protected function setGroup($group)
16
    {
17
        $this->group = $group;
18
    }
19
20
    public function getGroup()
21
    {
22
        return $this->group;
23
    }
24
25
    /**
26
     * Lógica
27
     */
28
    protected function run()
29
    {
30
        DebugHelper::debug('Run GroupManager !');
31
        
32
        return true;
33
    }
34
}
35