PHP 클래스 Braintree\Error\ErrorCollection

Contains a read-only property $error which is a ValidationErrorCollection
상속: implements Countable
파일 보기 프로젝트 열기: braintree/braintree_php

공개 메소드들

메소드 설명
__construct ( $errorData )
__get ( $name )
__toString ( )
count ( ) : integer Return count of items in collection Implements countable
deepAll ( ) Returns all of the validation errors at all levels of nesting in a single, flat array.
deepSize ( ) : integer Returns the total number of validation errors at all levels of nesting. For example, if creating a customer with a credit card and a billing address, and each of the customer, credit card, and billing address has 1 error, this method will return 3.
forKey ( string $key ) : mixed return errors for the passed key name
onHtmlField ( string $field ) : array return errors for the passed html field.
shallowAll ( ) Returns the errors at the given nesting level (see forKey) in a single, flat array:

메소드 상세

__construct() 공개 메소드

public __construct ( $errorData )

__get() 공개 메소드

public __get ( $name )

__toString() 공개 메소드

public __toString ( )

count() 공개 메소드

Return count of items in collection Implements countable
public count ( ) : integer
리턴 integer

deepAll() 공개 메소드

Returns all of the validation errors at all levels of nesting in a single, flat array.
public deepAll ( )

deepSize() 공개 메소드

Returns the total number of validation errors at all levels of nesting. For example, if creating a customer with a credit card and a billing address, and each of the customer, credit card, and billing address has 1 error, this method will return 3.
public deepSize ( ) : integer
리턴 integer size

forKey() 공개 메소드

return errors for the passed key name
public forKey ( string $key ) : mixed
$key string
리턴 mixed

onHtmlField() 공개 메소드

For example, $result->errors->onHtmlField("transaction[customer][last_name]")
public onHtmlField ( string $field ) : array
$field string
리턴 array

shallowAll() 공개 메소드

$result = Customer::create(...); $customerErrors = $result->errors->forKey('customer')->shallowAll();
public shallowAll ( )