Completed
Push — master ( 588d58...0f905f )
by vistart
08:52
created

OrganizationProfileModalWidget   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 23
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\Organization;
16
use yii\base\Widget;
17
18
/**
19
 * Class OrganizationProfileModalWidget
20
 * @package rhosocial\organization\widgets
21
 * @version 1.0
22
 * @author vistsart <[email protected]>
23
 */
24
class OrganizationProfileModalWidget extends Widget
25
{
26
    /**
27
     * @var Organization
28
     */
29
    public $organization;
30
    /**
31
     * @var array
32
     */
33
    public $toggleButton = [
34
35
    ];
36
    /**
37
     * @return string
38
     */
39
    public function run()
40
    {
41
        return $this->render('organization-profile-modal', [
42
            'organization' => $this->organization,
43
            'toggleButton' => $this->toggleButton,
44
        ]);
45
    }
46
}
47