Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ProfileWidget extends Component |
||
8 | { |
||
9 | public $bg, $img, $name, $desc; |
||
10 | public $cover; |
||
11 | |||
12 | public function __construct($bg = 'info', $img, $name, $desc, $cover = null) |
||
13 | { |
||
14 | $this->bg = $bg; |
||
15 | $this->img = $img; |
||
16 | $this->name = $name; |
||
17 | $this->desc = $desc; |
||
18 | $this->cover = $cover; |
||
19 | } |
||
20 | |||
21 | public function background() |
||
22 | { |
||
23 | return 'bg-'.$this->bg; |
||
24 | } |
||
25 | |||
26 | public function render() |
||
29 | } |
||
30 | } |