first commit
This commit is contained in:
19
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Response/Error/Errors.php
vendored
Normal file
19
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Response/Error/Errors.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class ResponseErrorErrors extends Response
|
||||
{
|
||||
|
||||
public function __construct($errors = [])
|
||||
{
|
||||
if (is_array($errors)) {
|
||||
foreach ($errors as $error) {
|
||||
$this->_data[$error] = $error;
|
||||
}
|
||||
} else {
|
||||
$this->_data[$errors] = $errors;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user