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 CountryOfOrigin implements HydratableInterface
{
/**
* @var string
*/
private $country;
private $source;
public function hydrateXml(\SimpleXMLElement $xml)
if (!isset($xml->CountryOfOrigin)) {
return;
}
$this->country = (string)$xml->CountryOfOrigin->Country;
$this->source = (string)$xml->CountryOfOrigin->Source;
* @return string
public function getCountry() : ?string
return $this->country;
public function getSource() : ?string
return $this->source;