Completed
Branch module_structure (3116d9)
by Pablo
02:56
created

PrePushExecuteStub   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A createEnabled() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Tests\Stub;
4
5
use PhpGitHooks\Module\Configuration\Domain\Execute;
6
use PhpGitHooks\Module\Configuration\Domain\PhpUnit;
7
8
class PrePushExecuteStub
9
{
10
    /**
11
     * @param PhpUnit $phpUnit
12
     *
13
     * @return Execute
14
     */
15
    public static function create(PhpUnit $phpUnit)
16
    {
17
        return new Execute([$phpUnit]);
18
    }
19
20
    /**
21
     * @return Execute
22
     */
23
    public static function createEnabled()
24
    {
25
        return self::create(PhpUnitStub::createEnabled());
26
    }
27
}
28