chore: Аннотации к типам
This commit is contained in:
parent
5e8958969f
commit
f964472e62
28 changed files with 140 additions and 36 deletions
|
|
@ -7,6 +7,7 @@ abstract class AbstractRule
|
|||
{
|
||||
public string $field;
|
||||
protected ?string $errorMsg;
|
||||
/** @var object */
|
||||
protected $ctx;
|
||||
|
||||
public function __construct(string $field, ?string $errorMsg = null)
|
||||
|
|
@ -46,6 +47,9 @@ abstract class AbstractRule
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param object $ctx
|
||||
*/
|
||||
public function setContext($ctx): void
|
||||
{
|
||||
$this->ctx = $ctx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue