1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace Braintree;
- /**
- * Creates an instance of AuthorizationAdjustment as returned from a transaction
- *
- * @package Braintree
- *
- * @property-read string $amount
- * @property-read DateTime $timestamp
- * @property-read boolean $success
- *
- */
- class AuthorizationAdjustment extends Base
- {
- public static function factory($attributes)
- {
- $instance = new self();
- $instance->_initialize($attributes);
- return $instance;
- }
- protected function _initialize($authorizationAdjustmentAttribs)
- {
- $this->_attributes = $authorizationAdjustmentAttribs;
- }
- public function __toString()
- {
- return __CLASS__ . '[' . Util::attributesToString($this->_attributes) . ']';
- }
- }
- class_alias('Braintree\AuthorizationAdjustment', 'Braintree_Authorization_Adjustment');
|