DummyPHPSuccess   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 2 1
A executeStatic() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CaptainHook\App\Runner\Action;
13
14
use CaptainHook\App\Config;
15
use CaptainHook\App\Console\IO;
16
use CaptainHook\App\Hook\Action as ActionInterface;
17
use SebastianFeldmann\Git\Repository;
18
19
class DummyPHPSuccess implements ActionInterface
20
{
21
    /**
22
     * Execute static action without errors or exceptions
23
     */
24
    public static function executeStatic()
25
    {
26
        // do something fooish statically
27
    }
28
29
    /**
30
     * Execute action without errors or exceptions
31
     *
32
     * @param  \CaptainHook\App\Config           $config
33
     * @param  \CaptainHook\App\Console\IO       $io
34
     * @param  \SebastianFeldmann\Git\Repository $repository
35
     * @param  \CaptainHook\App\Config\Action    $action
36
     * @return void
37
     */
38
    public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void
39
    {
40
        // do something fooish
41
    }
42
}
43