| Total Complexity | 3 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class ConstraintViolationParameter |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | * |
||
| 23 | * @GraphQL\Field(type="string!", |
||
| 24 | * description="Parameter name to use as placeholder in ConstraintViolation.messageTemplate") |
||
| 25 | */ |
||
| 26 | protected $name; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | * |
||
| 31 | * @GraphQL\Field(type="string!", |
||
| 32 | * description="Parameter value to replace") |
||
| 33 | */ |
||
| 34 | protected $value; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * ConstraintViolationParameter constructor. |
||
| 38 | * |
||
| 39 | * @param string $name |
||
| 40 | * @param string $value |
||
| 41 | */ |
||
| 42 | public function __construct($name, $value) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getName(): string |
||
| 52 | { |
||
| 53 | return $this->name; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getValue(): string |
||
| 62 | } |
||
| 63 | } |
||
| 64 |