Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Feb 13, 2025
2 parents 70c8573 + 2a8dcd2 commit a14ad6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Resources/Capability.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Mollie\Api\Resources;

use Mollie\Api\Types\CapabilityStatus;

class Capability extends BaseResource
{
/**
Expand Down Expand Up @@ -49,16 +51,16 @@ class Capability extends BaseResource

public function isEnabled()
{
return $this->status === 'enabled';
return $this->status === CapabilityStatus::ENABLED;
}

public function isPending()
{
return $this->status === 'pending';
return $this->status === CapabilityStatus::PENDING;
}

public function isDisabled()
{
return $this->status === 'disabled';
return $this->status === CapabilityStatus::DISABLED;
}
}
10 changes: 10 additions & 0 deletions src/Types/CapabilityStatus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Mollie\Api\Types;

class CapabilityStatus
{
public const ENABLED = 'enabled';
public const PENDING = 'pending';
public const DISABLED = 'disabled';
}

0 comments on commit a14ad6b

Please sign in to comment.