Completed
Push — master ( a7b5fe...4405b1 )
by wen
03:16
created

Page   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setIcon() 0 5 1
A getUrl() 0 4 1
A setModel() 0 6 1
1
<?php
2
3
namespace Sco\Admin\Navigation;
4
5
class Page extends \KodiComponents\Navigation\Page
6
{
7
    protected $model;
8
9
    public function setIcon($icon)
10
    {
11
        $this->icon = $icon;
12
        return $this;
13
    }
14
15
    public function getUrl()
16
    {
17
        return $this->url;
18
    }
19
20
    /**
21
     * @param $model
22
     *
23
     * @return $this
24
     */
25
    public function setModel($model)
26
    {
27
        $this->model = $model;
28
29
        return $this;
30
    }
31
}
32