Braintree\Customer::all PHP Méthode

all() public static méthode

public static all ( ) : Customer[]
Résultat Customer[]
    public static function all()
    {
        return Configuration::gateway()->customer()->all();
    }

Usage Example

 public function testAllWithManyResults()
 {
     $collection = Braintree\Customer::all();
     $this->assertTrue($collection->maximumCount() > 1);
     $customer = $collection->firstItem();
     $this->assertTrue(strlen($customer->id) > 0);
     $this->assertTrue($customer instanceof Braintree\Customer);
 }