Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 46.15% |
Changes | 0 |
1 | <?php |
||
18 | class NodeConnectionEdge implements EdgeInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var NodeInterface |
||
22 | * |
||
23 | * @GraphQL\Field(type="Ynlo\GraphQLBundle\Model\NodeInterface!") |
||
24 | */ |
||
25 | protected $node; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * |
||
30 | * @GraphQL\Field(type="string!") |
||
31 | */ |
||
32 | protected $cursor; |
||
33 | |||
34 | /** |
||
35 | * NodeConnectionEdge constructor. |
||
36 | * |
||
37 | * @param NodeInterface $node |
||
38 | * @param string $cursor |
||
39 | */ |
||
40 | 8 | public function __construct(NodeInterface $node, $cursor) |
|
44 | 8 | } |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 8 | public function getNode(): NodeInterface |
|
50 | { |
||
51 | 8 | return $this->node; |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function setNode(NodeInterface $node) |
||
58 | { |
||
59 | $this->node = $node; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getCursor(): string |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function setCursor(string $cursor) |
||
78 |