DummyPHPFailure   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 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 RuntimeException;
18
use SebastianFeldmann\Git\Repository;
19
20
class DummyPHPFailure implements ActionInterface
21
{
22
    /**
23
     * Execute action throwing an exception
24
     *
25
     * @param  \CaptainHook\App\Config         $config
26
     * @param  \CaptainHook\App\Console\IO     $io
27
     * @param  \SebastianFeldmann\Git\Repository             $repository
28
     * @param  \CaptainHook\App\Config\Action  $action
29
     * @return void
30
     * @throws \RuntimeException
31
     */
32
    public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void
33
    {
34
        throw new RuntimeException('Execution failed');
35
    }
36
}
37