File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Mollie \Api \Resources ;
4
4
5
+ use Mollie \Api \Types \CapabilityStatus ;
6
+
5
7
class Capability extends BaseResource
6
8
{
7
9
/**
@@ -49,16 +51,16 @@ class Capability extends BaseResource
49
51
50
52
public function isEnabled ()
51
53
{
52
- return $ this ->status === ' enabled ' ;
54
+ return $ this ->status === CapabilityStatus:: ENABLED ;
53
55
}
54
56
55
57
public function isPending ()
56
58
{
57
- return $ this ->status === ' pending ' ;
59
+ return $ this ->status === CapabilityStatus:: PENDING ;
58
60
}
59
61
60
62
public function isDisabled ()
61
63
{
62
- return $ this ->status === ' disabled ' ;
64
+ return $ this ->status === CapabilityStatus:: DISABLED ;
63
65
}
64
66
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Mollie \Api \Types ;
4
+
5
+ class CapabilityStatus
6
+ {
7
+ public const ENABLED = 'enabled ' ;
8
+ public const PENDING = 'pending ' ;
9
+ public const DISABLED = 'disabled ' ;
10
+ }
You can’t perform that action at this time.
0 commit comments