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 PaymentInfo implements HydratableInterface
{
/**
* @var string
*/
private $name;
private $value;
* @return string
public function getName() : string
return $this->name;
}
public function getValue() : string
return $this->value;
public function hydrateXml(\SimpleXMLElement $xml)
$this->name = (string)$xml['name'];
$this->value = (string)$xml;