Passed
Push — master ( a27dd3...975c9f )
by Vladimir
11:24
created

ObjectIdStub   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Tests\Type\TestClasses;
6
7
class ObjectIdStub
8
{
9
    /** @var int */
10
    private $id;
11
12
    /**
13
     * @param int $id
14
     */
15
    public function __construct($id)
16
    {
17
        $this->id = $id;
18
    }
19
20
    public function __toString()
21
    {
22
        return (string) $this->id;
23
    }
24
}
25