Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 325 Bytes

Error.md

File metadata and controls

21 lines (16 loc) · 325 Bytes

Error

<?php

use Chubbyphp\Validation\Error\Error;

$error = new Error(
    'path.to.property',
    'constraint.constraint.invalidtype',
    ['type' => 'array']
);
$error->getPath();
// 'path.to.property'

$error->getKey();
// 'constraint.constraint.invalidtype'

$error->getArguments();
// ['type' => 'array']