for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bavix\Wallet\Simple;
use Bavix\Wallet\Interfaces\Rateable;
use Bavix\Wallet\Interfaces\Wallet;
/**
* Class Rate.
*/
class Rate implements Rateable
{
* @var int
protected $amount;
* @var Wallet|\Bavix\Wallet\Models\Wallet
protected $withCurrency;
* {@inheritdoc}
public function withAmount($amount): Rateable
$this->amount = $amount;
return $this;
}
public function withCurrency(Wallet $wallet): Rateable
$this->withCurrency = $wallet;
public function convertTo(Wallet $wallet)
return $this->amount;