Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-braintree
Test
Unit
Model
Report
BraintreeTransactionStub.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Braintree\Test\Unit\Model\Report
;
7
11
class
BraintreeTransactionStub
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
}
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub\_set
_set($key, $value)
Definition:
BraintreeTransactionStub.php:61
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub\__isset
__isset($name)
Definition:
BraintreeTransactionStub.php:49
$value
$value
Definition:
gender.phtml:16
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub\$_attributes
$_attributes
Definition:
BraintreeTransactionStub.php:13
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub\setAttributes
setAttributes($attrs)
Definition:
BraintreeTransactionStub.php:21
Magento\Braintree\Test\Unit\Model\Report
Definition:
BraintreeSearchNodeStub.php:6
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub\__get
__get($name)
Definition:
BraintreeTransactionStub.php:33
Magento\Braintree\Test\Unit\Model\Report\BraintreeTransactionStub
Definition:
BraintreeTransactionStub.php:11
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14