UserProfileModalWidget::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 *  _   __ __ _____ _____ ___  ____  _____
5
 * | | / // // ___//_  _//   ||  __||_   _|
6
 * | |/ // /(__  )  / / / /| || |     | |
7
 * |___//_//____/  /_/ /_/ |_||_|     |_|
8
 * @link https://vistart.me/
9
 * @copyright Copyright (c) 2016 - 2017 vistart
10
 * @license https://vistart.me/license/
11
 */
12
13
namespace rhosocial\user\widgets;
14
15
use yii\base\Widget;
16
17
/**
18
 * Class UserProfileModalWidget
19
 * @package rhosocial\user\widgets
20
 * @version 1.0
21
 * @author vistart <[email protected]>
22
 */
23
class UserProfileModalWidget extends Widget
24
{
25
    /**
26
     * @var User
27
     */
28
    public $user;
29
30
    /**
31
     * @var null|array
32
     */
33
    public $toggleButton;
34
35
    /**
36
     * @return string
37
     */
38
    public function run()
39
    {
40
        return $this->render('user-profile-modal', [
41
            'toggleButton' => $this->toggleButton,
42
            'user' => $this->user,
43
        ]);
44
    }
45
}
46