NewsletterForm::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/yiimaker/yii2-newsletter
4
 * @copyright Copyright (c) 2017 Yii Maker
5
 * @license BSD 3-Clause License
6
 */
7
8
namespace ymaker\newsletter\frontend\widgets;
9
10
use yii\base\Widget;
11
use ymaker\newsletter\common\models\entities\NewsletterClient;
12
13
/**
14
 * Renders newsletter form.
15
 *
16
 * @author Vladimir Kuprienko <[email protected]>
17
 * @since 1.0
18
 */
19
class NewsletterForm extends Widget
20
{
21
    /**
22
     * @inheritdoc
23
     */
24
    public function run()
25
    {
26
        return $this->render('newsletter-form', [
27
            'model' => new NewsletterClient(),
28
        ]);
29
    }
30
}
31