for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class for response to Check request
*
* @package php_EasyPay
* @version 1.1
* @author Dmitry Shovchko <[email protected]>
*/
namespace EasyPay\Provider31\Response;
use \EasyPay\Provider31\Response as Response;
use \EasyPay\Provider31\AccountInfo as AccountInfo;
final class Check extends Response
{
* @var \DOMElement
protected $AccountInfo;
* Check constructor
* @param AccountInfo $accountinfo account information set
public function __construct(AccountInfo $accountinfo)
parent::__construct();
$this->setElementValue('StatusCode', 0);
$this->setElementValue('StatusDetail', 'checked');
$this->create_AccountInfo($accountinfo);
}
* Create AccountInfo node with child nodes
public function create_AccountInfo($accountinfo)
if (isset($this->AccountInfo)) return;
$this->AccountInfo = $this->createElement('AccountInfo');
$this->Response->appendChild($this->AccountInfo);
foreach($accountinfo as $parameter=>$value)
$this->AccountInfo->appendChild($this->createElement($parameter, $value));