Skip to content

Commit

Permalink
Added hasItems and getItems methods to the Payable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Apr 25, 2024
1 parent 98d2372 commit ba1c55b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/Examples/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

namespace Vanilo\Payment\Tests\Examples;

use ArrayIterator;
use Illuminate\Database\Eloquent\Model;
use Traversable;
use Vanilo\Contracts\Billpayer;
use Vanilo\Contracts\Payable;

Expand Down Expand Up @@ -52,6 +54,17 @@ public function getBillpayer(): ?Billpayer
return new Customer();
}

public function hasItems(): bool
{
return false;
}

public function getItems(): Traversable
{
return new ArrayIterator([]);
}


public function getNumber(): string
{
return (string) $this->id;
Expand Down

0 comments on commit ba1c55b

Please sign in to comment.