for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace SlevomatCsobGateway;
class Amount
{
/**
* @var int
*/
private $value;
* @var Currency
private $currency;
public function __construct(
int $value,
Currency $currency
)
$this->value = $value;
$this->currency = $currency;
}
public function getValue(): int
return $this->value;
public function getCurrency(): Currency
return $this->currency;