for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class for Check request
*
* @package php_EasyPay
* @version 1.1
* @author Dmitry Shovchko <[email protected]>
*/
namespace EasyPay\Provider31\Request;
use EasyPay\Log as Log;
use EasyPay\Exception;
class Check extends General
{
* @var string 'Account' node
protected $Account;
* Check constructor
* @param \EasyPay\Provider31\Request\RAW $raw Raw request data
public function __construct($raw)
parent::__construct($raw);
}
* Get Account
* @return string
public function Account()
return $this->Account;
* Parse xml-request, which was previously "extracted" from the body of the http request
protected function parse_request_data()
parent::parse_request_data();
$r = $this->raw_request->get_nodes_from_request('Check');
foreach ($r[0]->childNodes as $child)
$this->check_and_parse_request_node($child, 'Account');
* validate Check request
* @param array $options
* @throws Exception\Structure
public function validate_request($options)
parent::validate_request($options);
$this->validate_element('Account');