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;
use Ynlo\GraphQLBundle\Type\OrderDirectionType;
/**
* @GraphQL\InputObjectType()
*/
class OrderBy
{
* @var string
* @GraphQL\Field(type="string!")
protected $field;
* @GraphQL\Field(type="Ynlo\GraphQLBundle\Type\OrderDirectionType")
protected $direction = OrderDirectionType::ASC;
* @return string
public function getField(): string
return $this->field;
}
* @param string $field
* @return OrderBy
public function setField(string $field): OrderBy
$this->field = $field;
return $this;
public function getDirection(): string
return $this->direction;
* @param string $direction
public function setDirection(string $direction): OrderBy
$this->direction = $direction;