PluginProbe
Packeta / 2.3.1
Packeta v2.3.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Core / Api / Rest / PickupPointValidateResponse.php

PickupPointValidateResponse.php in Packeta 2.3.1, at src/Packetery/Core/Api/Rest/PickupPointValidateResponse.php

35 lines 716 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare( strict_types=1 );
4
5 namespace Packetery\Core\Api\Rest;
6
7 class PickupPointValidateResponse {
8
9 /** @var bool */
10 private $isValid;
11
12 /** @var array<int, array{code: string, description: string}> */
13 private $errors;
14
15 /**
16 * @param bool $isValid
17 * @param array<int, array{code: string, description: string}> $errors
18 */
19 public function __construct( bool $isValid, array $errors ) {
20 $this->isValid = $isValid;
21 $this->errors = $errors;
22 }
23
24 public function isValid(): bool {
25 return $this->isValid;
26 }
27
28 /**
29 * @return array<int, array{code: string, description: string}>
30 */
31 public function getErrors(): array {
32 return $this->errors;
33 }
34 }
35