Passed
Push — master ( 7bee4d...457c92 )
by Sebastian
01:54
created

Base::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of CaptainHook.
4
 *
5
 * (c) Sebastian Feldmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace CaptainHook\App\Console\IO;
11
12
use CaptainHook\App\Console\IO;
13
14
/**
15
 * Class Base
16
 *
17
 * @package CaptainHook
18
 * @author  Sebastian Feldmann <[email protected]>
19
 * @link    https://github.com/captainhookphp/captainhook
20
 * @since   Class available since Release 0.9.0
21
 */
22
abstract class Base implements IO
23
{
24
    /**
25
     * Return the original cli arguments
26
     *
27
     * @return array
28
     */
29 1
    public function getArguments() : array
30
    {
31 1
        return [];
32
    }
33
34
    /**
35
     * Return the original cli argument or a given default
36
     *
37
     * @param  string $name
38
     * @param  string $default
39
     * @return string
40
     */
41 1
    public function getArgument(string $name, string $default = '') : string
42
    {
43 1
        return $default;
44
    }
45
}
46