DummyPHPFailure::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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