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 ConstraintViolationParameter
{
* @var string
* @GraphQL\Field(type="string!",
* description="Parameter name to use as placeholder in ConstraintViolation.messageTemplate")
protected $name;
* description="Parameter value to replace")
protected $value;
* ConstraintViolationParameter constructor.
* @param string $name
* @param string $value
public function __construct($name, $value)
$this->name = $name;
$this->value = $value;
}
* @return string
public function getName(): string
return $this->name;
public function getValue(): string
return $this->value;