| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class SetPassportDataErrorsMethod |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * User identifier. |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | public $userId; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * A JSON-serialized array describing the errors. |
||
| 35 | * |
||
| 36 | * @var PassportElementErrorType[] |
||
| 37 | */ |
||
| 38 | public $errors; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * SetPassportDataErrorsMethod constructor. |
||
| 42 | * |
||
| 43 | * @param int $userId |
||
| 44 | * @param PassportElementErrorType[] |
||
| 45 | * @param array $errors |
||
| 46 | */ |
||
| 47 | public function __construct(int $userId, array $errors) |
||
| 48 | { |
||
| 49 | $this->userId = $userId; |
||
| 50 | $this->errors = $errors; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param PassportElementErrorType $error |
||
| 55 | */ |
||
| 56 | public function addError(PassportElementErrorType $error) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |