Completed
Push — refactor ( 1ac315 )
by Akihito
05:56
created

IpQualifier::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Compiler;
6
7
use ReflectionParameter;
8
9
use function serialize;
10
11
final class IpQualifier
12
{
13
    /** @var ReflectionParameter */
14
    public $param;
15
16
    /** @var mixed */
17
    public $qualifier;
18
19
    public function __construct(ReflectionParameter $param, object $qualifier)
20
    {
21
        $this->param = $param;
22
        $this->qualifier = $qualifier;
23
    }
24
25
    public function __toString(): string
26
    {
27
        return serialize($this->qualifier);
28
    }
29
}
30