Completed
Push — master ( da8060...e56b07 )
by Alberto
20s queued 10s
created

IncompleteAbstractTestClass::getReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Moka\Tests;
5
6
abstract class IncompleteAbstractTestClass implements TestInterface
7
{
8
    public $public;
9
10
    protected $protected;
11
12
    private $private;
13
14
    public $isTrue;
15
16
    public static $getInt;
17
18
    public function isTrue(): bool
19
    {
20
        return true;
21
    }
22
23
    public function getInt(): int
24
    {
25
        return 11;
26
    }
27
28
    public function getSelf(): TestInterface
29
    {
30
        return $this;
31
    }
32
33
    public function getCallable(): callable
34
    {
35
        return function () {
36
        };
37
    }
38
39
    public function & getReference(): array
40
    {
41
        return [];
42
    }
43
44
    public function withArgument(int $argument): int
45
    {
46
        return $argument;
47
    }
48
49
    public function withArguments(
50
        int $required,
51
        $nullable = null,
52
        string &$byReference = PHP_EOL,
53
        FooTestClass $class = null,
54
        array $array = [3],
55
        callable $callable = null,
56
        ...$variadic
57
    ): int {
58
        return $required;
59
    }
60
61
    public function throwException()
62
    {
63
    }
64
65
    abstract public function abstractMethod();
66
}
67