WidgetRepository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php namespace Anomaly\DashboardModule\Widget;
2
3
use Anomaly\DashboardModule\Widget\Contract\WidgetRepositoryInterface;
4
use Anomaly\Streams\Platform\Entry\EntryRepository;
5
6
class WidgetRepository extends EntryRepository implements WidgetRepositoryInterface
7
{
8
9
    /**
10
     * The entry model.
11
     *
12
     * @var WidgetModel
13
     */
14
    protected $model;
15
16
    /**
17
     * Create a new WidgetRepository instance.
18
     *
19
     * @param WidgetModel $model
20
     */
21
    public function __construct(WidgetModel $model)
22
    {
23
        $this->model = $model;
24
    }
25
}
26