Passed
Pull Request — master (#32)
by Wilmer
15:17
created

FakeGenerator::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Yiisoft\Yii\Cycle\Tests\Conveyor\Stub;
4
5
use Cycle\Schema\GeneratorInterface;
6
use Cycle\Schema\Registry;
7
8
class FakeGenerator implements GeneratorInterface
9
{
10
    private string $originClass;
11
12
    public function __construct(string $originClass)
13
    {
14
        $this->originClass = $originClass;
15
    }
16
17
    public function run(Registry $registry): Registry
18
    {
19
    }
20
21
    public function originClass(): string
22
    {
23
        return $this->originClass;
24
    }
25
}
26