Completed
Push — master ( 78a26b...bac2b6 )
by vistart
06:59
created

SetUpButtonWidget::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
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\organization\widgets;
14
15
use rhosocial\user\User;
16
use yii\base\Widget;
17
18
/**
19
 * Class SetUpButtonWidget
20
 * @package rhosocial\organization\widgets
21
 * @version 1.0
22
 * @author vistart <[email protected]>
23
 */
24
class SetUpButtonWidget extends Widget
25
{
26
    /**
27
     * @var User
28
     */
29
    public $operator;
30
    /**
31
     * @var array|string
32
     */
33
    public $url = ['set-up-organization'];
34
    /**
35
     * @var array
36
     */
37
    public $options = ['class' => 'btn btn-primary'];
38
    /**
39
     * @return string
40
     */
41
    public function run()
42
    {
43
        return $this->render('set-up-button', [
44
            'url' => $this->url,
45
            'options' => $this->options,
46
            'operator' => $this->operator,
47
        ]);
48
    }
49
}
50