IncompleteAbstractTestClass   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 61
rs 10
c 0
b 0
f 0
wmc 8
lcom 0
cbo 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A isTrue() 0 4 1
A getInt() 0 4 1
A getSelf() 0 4 1
A getCallable() 0 5 1
A getReference() 0 4 1
A withArgument() 0 4 1
A withArguments() 0 11 1
A throwException() 0 3 1
abstractMethod() 0 1 ?
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