-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCheckResult.php
73 lines (59 loc) · 1.97 KB
/
CheckResult.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php declare(strict_types=1);
namespace Vendic\OhDear\Model;
use Magento\Framework\DataObject;
use Vendic\OhDear\Api\Data\CheckResultInterface;
use Vendic\OhDear\Api\Data\CheckStatus;
/**
* @copyright Copyright (c) Vendic B.V https://vendic.nl/
*/
class CheckResult extends DataObject implements CheckResultInterface
{
public function getName(): string
{
return $this->getData(CheckResultInterface::NAME);
}
public function setName(string $name): CheckResultInterface
{
return $this->setData(CheckResultInterface::NAME, $name);
}
public function getLabel(): string
{
return $this->getData(CheckResultInterface::LABEL);
}
public function setLabel(string $label): CheckResultInterface
{
return $this->setData(CheckResultInterface::LABEL, $label);
}
public function getNotificationMessage(): string
{
return $this->getData(CheckResultInterface::NOTIFICATION_MESSAGE);
}
public function setNotificationMessage(string $notificationMessage): CheckResultInterface
{
return $this->setData(CheckResultInterface::NOTIFICATION_MESSAGE, $notificationMessage);
}
public function getShortSummary(): string
{
return $this->getData(CheckResultInterface::SHORT_SUMMARY);
}
public function setShortSummary(string $shortSummary): CheckResultInterface
{
return $this->setData(CheckResultInterface::SHORT_SUMMARY, $shortSummary);
}
public function getStatus(): CheckStatus
{
return $this->getData(CheckResultInterface::STATUS);
}
public function setStatus(CheckStatus $status): CheckResultInterface
{
return $this->setData(CheckResultInterface::STATUS, $status);
}
public function getMeta(): array
{
return $this->getData(CheckResultInterface::META);
}
public function setMeta(array $meta): CheckResultInterface
{
return $this->setData(CheckResultInterface::META, $meta);
}
}