PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Features/UserSettings/Exceptions/StorageSubmitException.php +25 -0 2.0.0 → 2.1.1 View file →
@@ -1,0 +1,25 @@
1 +<?php
2 +
3 +declare(strict_types=1);
4 +
5 +namespace Metricool\Features\UserSettings\Exceptions;
6 +
7 +class StorageSubmitException extends \RuntimeException
8 +{
9 + /**
10 + * key-value pair of errors occurred during the submit process. The key
11 + * should reflect the storage name and the value the error message from
12 + * the client.
13 + */
14 + private array $errors = [];
15 +
16 + public function setErrors(array $errors): void
17 + {
18 + $this->errors = $errors;
19 + }
20 +
21 + public function getErrors(): array
22 + {
23 + return $this->errors;
24 + }
25 +}