protected function handleSign() { if (property_exists($this, 'value') && property_exists($this, 'signMsg') && property_exists($this, 'signData')) { preg_match('/<plain>.*<\\/plain>/', $this->_trim($this->value), $res); if (empty($res)) { return false; } $this->signData = $res[0]; $this->value = XML::parse($this->value); $this->signMsg = Arr::get($this->value, 'signature'); $this->value = array_merge(Arr::get($this->value, 'plain', []), Arr::get($this->value, 'plain.results.result', [])); } }
public function __get($key) { return Arr::get($this->value, $key); }