for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\AltaPay\Entity;
use Loevgaard\AltaPay\Hydrator\HydratableInterface;
class Terminal implements HydratableInterface
{
use CurrenciesTrait;
use NaturesTrait;
/**
* @var string
*/
protected $title;
protected $country;
* @return string
public function getTitle() : string
return $this->title;
}
public function getCountry() : string
return $this->country;
public function hydrateXml(\SimpleXMLElement $xml)
$this->title = (string)$xml->Title;
$this->country = (string)$xml->Country;
$this->hydrateCurrencies($xml);
$this->hydrateNatures($xml);