BinData.php
960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Braintree;
/**
 * @property-read string $commercial
 * @property-read string $countryOfIssuance
 * @property-read string $debit
 * @property-read string $durbinRegulated
 * @property-read string $healthcare
 * @property-read string $issuingBank
 * @property-read string $payroll
 * @property-read string $prepaid
 * @property-read string $productId
 */
class BinData extends Base
{
    public static function factory($attributes)
    {
        $instance = new self();
        $instance->_initialize($attributes);
        return $instance;
    }
    protected function _initialize($attributes)
    {
        $this->_attributes = $attributes;
    }
    /**
     * returns a string representation of the bin data
     * @return string
     */
    public function  __toString()
    {
        return __CLASS__ . '[' .
            Util::attributesToString($this->_attributes) .']';
    }
}
class_alias('Braintree\BinData', 'Braintree_BinData');