Completed
Push — master ( 83a208...cb1541 )
by Pablo
02:46
created

IgnoreStub   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A random() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Tests\Stub;
4
5
use PhpGitHooks\Module\Configuration\Domain\Ignore;
6
use PhpGitHooks\Module\Tests\Infrastructure\Stub\RandomStubInterface;
7
use PhpGitHooks\Module\Tests\Infrastructure\Stub\StubCreator;
8
9
class IgnoreStub implements RandomStubInterface
10
{
11
    /**
12
     * @param string $value
13
     *
14
     * @return Ignore
15
     */
16
    public static function create($value)
17
    {
18
        return new Ignore($value);
19
    }
20
21
    /**
22
     * @return Ignore
23
     */
24
    public static function random()
25
    {
26
        return self::create(StubCreator::faker()->word);
27
    }
28
}
29