Your IP : 216.73.217.95


Current Path : /home/rtorresani/www/vendor/braintree/braintree_php/lib/Braintree/
Upload File :
Current File : //home/rtorresani/www/vendor/braintree/braintree_php/lib/Braintree/AccountUpdaterDailyReport.php

<?php

namespace Braintree;

/**
 * Creates an instance of AccountUpdaterDailyReport
 *
 * For attributes see our {@link https://developer.paypal.com/braintree/docs/reference/general/webhooks/account-updater/php#notification-kinds developer documentation}
 */
class AccountUpdaterDailyReport extends Base
{
    protected $_attributes = [];

    protected function _initialize($disputeAttribs)
    {
        $this->_attributes = $disputeAttribs;
    }

    /**
     * Creates an instance of an AccountUpdaterDailyReport from given attributes
     *
     * @param array $attributes to generate new AccountUpdaterDailyReport
     *
     * @return AccountUpdaterDailyReport
     */
    public static function factory($attributes)
    {
        $instance = new self();
        $instance->_initialize($attributes);
        return $instance;
    }

    // phpcs:ignore PEAR.Commenting.FunctionComment.Missing
    public function __toString()
    {
        $display = [
            'reportDate', 'reportUrl'
            ];

        $displayAttributes = [];
        foreach ($display as $attrib) {
            $displayAttributes[$attrib] = $this->$attrib;
        }
        return __CLASS__ . '[' .
                Util::attributesToString($displayAttributes) . ']';
    }
}