WidgetRepository::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 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