for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sarnado\Converter\Objects;
use Sarnado\Converter\Checkers\TypeValidator;
/**
* Class ConverterResultObject
*/
class ConverterResultObject
{
* @var string
private $amount;
private $currency;
* ConverterResultObject constructor.
* @param string $amount
* @param string $currency
public function __construct(string $amount, string $currency)
$this->setAmount($amount);
$this->setCurrency($currency);
}
* @return string
public function getAmount(): string
return $this->amount;
public function setAmount(string $amount)
$this->amount = $amount;
public function getCurrency(): string
return $this->currency;
public function setCurrency(string $currency)
$this->currency = $currency;
public function toString(): string
return $this->amount . ' ' . $this->currency;