Completed
Pull Request — master (#52)
by Alexander
03:31
created

TestWidget::getContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace Yiisoft\Widget\Tests\Stubs;
5
6
use Yiisoft\Widget\Widget;
7
8
/**
9
 * TestWidget
10
 * @method static TestWidget widget()
11
 */
12
class TestWidget extends Widget
13
{
14
    /**
15
     * @var string $id
16
     */
17
    private $id;
18
19
    public function getContent(): string
20
    {
21
        return '<run-' . $this->id . '>';
22
    }
23
24
    public function id(string $value): Widget
25
    {
26
        $this->id = $value;
27
28
        return $this;
29
    }
30
}
31