BaseClass::publicByReferenceMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GeneratedHydratorTestAsset;
6
7
use stdClass;
8
9
/**
10
 * Base test class with various intercepted properties
11
 */
12
class BaseClass implements Base
13
{
14
    /** @var string */
15
    public $publicProperty = 'publicPropertyDefault';
16
17
    /** @var string */
18
    protected $protectedProperty = 'protectedPropertyDefault';
19
20
//phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedProperty
21
    /** @var string */
22
    private $privateProperty = 'privatePropertyDefault';
23
//phpcs:enable
24
25
    public function publicMethod() : string
26
    {
27
        return 'publicMethodDefault';
28
    }
29
30
    protected function protectedMethod() : string
31
    {
32
        return 'protectedMethodDefault';
33
    }
34
35
//phpcs:disable SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod
36
    private function privateMethod() : string
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
37
    {
38
//phpcs:enable
39
        return 'privateMethodDefault';
40
    }
41
42
    public function publicTypeHintedMethod(stdClass $param) : string
0 ignored issues
show
Unused Code introduced by
The parameter $param is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
43
    {
44
        return 'publicTypeHintedMethodDefault';
45
    }
46
47
    /**
48
     * @param mixed[] $param
49
     */
50
    public function publicArrayHintedMethod(array $param) : string
0 ignored issues
show
Unused Code introduced by
The parameter $param is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
51
    {
52
        return 'publicArrayHintedMethodDefault';
53
    }
54
55
    public function & publicByReferenceMethod() : string
56
    {
57
        return 'publicByReferenceMethodDefault';
58
    }
59
60
    /**
61
     * @param mixed $param
62
     * @param mixed $byRefParam
63
     */
64
    public function publicByReferenceParameterMethod($param, &$byRefParam) : string
0 ignored issues
show
Unused Code introduced by
The parameter $param is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $byRefParam is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65
    {
66
        return 'publicByReferenceParameterMethodDefault';
67
    }
68
}
69