Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BraintreeTransactionStub.php
Go to the documentation of this file.
1 <?php
7 
12 {
13  protected $_attributes = [];
14 
21  public function setAttributes($attrs)
22  {
23  $this->_attributes = $attrs;
24  }
25 
33  public function __get($name)
34  {
35  if (array_key_exists($name, $this->_attributes)) {
36  return $this->_attributes[$name];
37  }
38  trigger_error('Undefined property on ' . get_class($this) . ': ' . $name, E_USER_NOTICE);
39  return null;
40  }
41 
49  public function __isset($name)
50  {
51  return array_key_exists($name, $this->_attributes);
52  }
53 
61  public function _set($key, $value)
62  {
63  $this->_attributes[$key] = $value;
64  }
65 }
$value
Definition: gender.phtml:16
if(!isset($_GET['name'])) $name
Definition: log.php:14