Completed
Push — master ( 5e4c73...102525 )
by vistart
06:59
created

OrganizationChildrenListWidget::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
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\organization\Organization;
16
use yii\base\Widget;
17
18
/**
19
 * Class OrganizationChildrenListWidget
20
 * @package rhosocial\organization\widgets
21
 * @version 1.0
22
 * @author vistart <[email protected]>
23
 */
24
class OrganizationChildrenListWidget extends Widget
25
{
26
    /**
27
     * @var Organization
28
     */
29
    public $organization;
30
31
    /**
32
     * @return string
33
     */
34
    public function run()
35
    {
36
        return $this->render('organization-children-list', [
37
            'organization' => $this->organization,
38
        ]);
39
    }
40
}
41