Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Result.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class Result implements ResultInterface
11 {
15  private $isValid;
16 
20  private $failsDescription;
21 
25  private $errorCodes;
26 
32  public function __construct(
33  $isValid,
34  array $failsDescription = [],
35  array $errorCodes = []
36  ) {
37  $this->isValid = (bool)$isValid;
38  $this->failsDescription = $failsDescription;
39  $this->errorCodes = $errorCodes;
40  }
41 
45  public function isValid(): bool
46  {
47  return $this->isValid;
48  }
49 
53  public function getFailsDescription(): array
54  {
55  return $this->failsDescription;
56  }
57 
61  public function getErrorCodes(): array
62  {
63  return $this->errorCodes;
64  }
65 }
__construct( $isValid, array $failsDescription=[], array $errorCodes=[])
Definition: Result.php:32