| Total Complexity | 1 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | * @return SetPassportDataErrorsMethod |
||
| 48 | */ |
||
| 49 | 9 | public static function create(int $userId, array $errors): SetPassportDataErrorsMethod |
|
| 58 |