Skip to content

Commit

Permalink
Add Stateful Validator Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
awurth committed Mar 25, 2023
1 parent 944c584 commit 623eb9d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/StatefulValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Respect\Validation\Validatable;

final class StatefulValidator implements ValidatorInterface
final class StatefulValidator implements StatefulValidatorInterface
{
private ValidationFailureCollectionInterface $failures;

Expand Down
19 changes: 19 additions & 0 deletions src/StatefulValidatorInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Awurth Validator package.
*
* (c) Alexis Wurth <awurth.dev@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Awurth\Validator;

interface StatefulValidatorInterface extends ValidatorInterface
{
public function getFailures(): ValidationFailureCollectionInterface;
}

0 comments on commit 623eb9d

Please sign in to comment.