Skip to content

Commit 70cde21

Browse files
committed
[validation] added switch between laravel and annotation validation
- refactoring of Validation/ResponseException/AbstractException.php
1 parent bc2c73c commit 70cde21

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Validation/ResponseException/AbstractException.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ abstract class AbstractException extends Exception
1919
protected $errorCollection;
2020

2121
/**
22-
* TODO: delete error, should be just an constructor.
23-
*
2422
* @param ErrorCollection $errorCollection
2523
*/
2624
final public function setErrorCollection(ErrorCollection $errorCollection): void
2725
{
2826
$this->errorCollection = $errorCollection;
2927
}
28+
29+
/**
30+
* @return ErrorCollection|null
31+
*/
32+
final public function getErrorCollection(): ?ErrorCollection
33+
{
34+
return $this->errorCollection;
35+
}
3036
}

0 commit comments

Comments
 (0)