for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Model;
use Ynlo\GraphQLBundle\Annotation as GraphQL;
/**
* @GraphQL\ObjectType()
*/
class NodeConnectionEdge implements EdgeInterface
{
* @var NodeInterface
* @GraphQL\Field(type="Ynlo\GraphQLBundle\Model\NodeInterface!")
protected $node;
* @var string
* @GraphQL\Field(type="string!")
protected $cursor;
* NodeConnectionEdge constructor.
* @param NodeInterface $node
* @param string $cursor
public function __construct(NodeInterface $node, $cursor)
$this->node = $node;
$this->cursor = $cursor;
}
* {@inheritdoc}
public function getNode(): NodeInterface
return $this->node;
public function setNode(NodeInterface $node)
public function getCursor(): string
return $this->cursor;
public function setCursor(string $cursor)