forked from Thijzer/csv-validation-header.wip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAkeneoError.php
43 lines (36 loc) · 910 Bytes
/
AkeneoError.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Misery\Component\Akeneo\Client\Errors;
/**
* @deprecated
* @orig https://github.com/induxx/shared-app-libraries/blob/main/src/Component/Akeneo/Api/Client/Errors/
*/
class AkeneoError
{
public function __construct(
private readonly string $field,
private readonly string $message,
private readonly ?string $attribute = null,
private readonly ?string $locale = null,
private readonly ?string $scope = null
) {}
public function getField(): string
{
return $this->field;
}
public function getErrorMessage(): string
{
return $this->message;
}
public function getAttributeCode(): ?string
{
return $this->attribute;
}
public function getLocale():? string
{
return $this->locale;
}
public function getScope():? string
{
return $this->scope;
}
}