Completed
Pull Request — master (#29)
by
unknown
06:10
created

Item   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __get() 0 4 1
1
<?php
2
3
namespace Softonic\GraphQL\Query;
4
5
use Softonic\GraphQL\Traits\GqlIterator;
6
7
class Item implements ReadObject, \Iterator
8
{
9
    use GqlIterator;
10
11
    /**
12
     * @var array
13
     */
14
    private $arguments = [];
15
16 56
    public function __construct(array $arguments = [])
17
    {
18 56
        $this->arguments = $arguments;
19 56
    }
20
21
    public function __get($key)
22
    {
23
        return $this->arguments[$key];
24
    }
25
}
26