for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\AltaPay\Entity;
trait CustomerInfoTrait
{
/**
* @var CustomerInfo
*/
private $customerInfo;
public function hydrateCustomerInfo(\SimpleXMLElement $xml)
$customerInfo = new CustomerInfo();
$customerInfo->hydrateXml($xml);
$this->customerInfo = $customerInfo;
}
* @return CustomerInfo
public function getCustomerInfo() : CustomerInfo
return $this->customerInfo;