Completed
Push — master ( 033d43...b96e2f )
by vistart
07:33
created

SettingsFormWidget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 1
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\organization\forms\SettingsForm;
16
use rhosocial\organization\Organization;
17
use yii\base\Widget;
18
19
/**
20
 * Class SettingsFormWidget
21
 * @package rhosocial\organization\widgets
22
 * @version 1.0
23
 * @author vistart <[email protected]>
24
 */
25
class SettingsFormWidget extends Widget
26
{
27
    /**
28
     * @var Organization
29
     */
30
    public $organization;
31
    /**
32
     * @var SettingsForm
33
     */
34
    public $model;
35
36
    /**
37
     * @return string
38
     */
39
    public function run()
40
    {
41
        return $this->render('settings-form', [
42
            'organization' => $this->organization,
43
            'model' => $this->model,
44
        ]);
45
    }
46
}
47