Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | abstract class AbstractMethod implements MethodInterface |
||
15 | { |
||
16 | public const PAYMENT_API = 'PAYMENT_API'; |
||
17 | |||
18 | public const ORDER_API = 'ORDER_API'; |
||
19 | |||
20 | use ConfigTrait; |
||
21 | |||
22 | /** @var string|null */ |
||
23 | protected $name; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $description; |
||
27 | |||
28 | /** @var array */ |
||
29 | protected $config; |
||
30 | |||
31 | /** @var bool */ |
||
32 | protected $enabled = false; |
||
33 | |||
34 | public function getName(): ?string |
||
35 | { |
||
36 | return $this->name; |
||
37 | } |
||
38 | |||
39 | public function setName(?string $name): void |
||
40 | { |
||
41 | $this->name = $name; |
||
42 | } |
||
43 | |||
44 | public function isEnabled(): bool |
||
45 | { |
||
46 | return $this->enabled; |
||
47 | } |
||
48 | |||
49 | public function setEnabled(bool $enabled): void |
||
52 | } |
||
53 | } |
||
54 |