AddonTableEntries   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php namespace Anomaly\AddonsModule\Addon\Table;
2
3
use Anomaly\Streams\Platform\Addon\AddonCollection;
4
5
6
/**
7
 * Class AddonTableEntries
8
 *
9
 * @link          http://pyrocms.com/
10
 * @author        PyroCMS, Inc. <[email protected]>
11
 * @author        Ryan Thompson <[email protected]>
12
 */
13
class AddonTableEntries
14
{
15
16
    /**
17
     * Handle the command.
18
     *
19
     * @param AddonTableBuilder $builder
20
     * @param AddonCollection   $addons
21
     */
22
    public function handle(AddonTableBuilder $builder, AddonCollection $addons)
23
    {
24
        $addons = $addons->{$builder->getType()}();
25
26
        $builder->setTableEntries($addons);
27
    }
28
}
29