PHP 클래스 Symfony\Component\Validator\ConstraintViolationList

저자: Bernhard Schussek ([email protected])
상속: implements IteratorAggregate, implements Countable, implements ArrayAccess
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$violations array The constraint violations

공개 메소드들

메소드 설명
__construct ( array $violations = [] ) Creates a new constraint violation list.
__toString ( ) : string
add ( ConstraintViolation $violation ) Add a ConstraintViolation to this list.
addAll ( ConstraintViolationList $otherList ) Merge an existing ConstraintViolationList into this list.
count ( )
get ( integer $offset ) : ConstraintViolation Returns the violation at a given offset.
getIterator ( )
has ( integer $offset ) : boolean Returns whether the given offset exists.
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $violation )
offsetUnset ( $offset )
remove ( integer $offset ) Removes a violation at a given offset.
set ( integer $offset, ConstraintViolation $violation ) Sets a violation at a given offset.

메소드 상세

__construct() 공개 메소드

Creates a new constraint violation list.
public __construct ( array $violations = [] )
$violations array The constraint violations to add to the list

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

add() 공개 메소드

Add a ConstraintViolation to this list.
public add ( ConstraintViolation $violation )
$violation ConstraintViolation

addAll() 공개 메소드

Merge an existing ConstraintViolationList into this list.
public addAll ( ConstraintViolationList $otherList )
$otherList ConstraintViolationList

count() 공개 메소드

또한 보기: Countable
public count ( )

get() 공개 메소드

Returns the violation at a given offset.
public get ( integer $offset ) : ConstraintViolation
$offset integer The offset of the violation.
리턴 ConstraintViolation The violation.

getIterator() 공개 메소드

또한 보기: IteratorAggregate
public getIterator ( )

has() 공개 메소드

Returns whether the given offset exists.
public has ( integer $offset ) : boolean
$offset integer The violation offset.
리턴 boolean Whether the offset exists.

offsetExists() 공개 메소드

또한 보기: ArrayAccess
public offsetExists ( $offset )

offsetGet() 공개 메소드

또한 보기: ArrayAccess
public offsetGet ( $offset )

offsetSet() 공개 메소드

또한 보기: ArrayAccess
public offsetSet ( $offset, $violation )

offsetUnset() 공개 메소드

또한 보기: ArrayAccess
public offsetUnset ( $offset )

remove() 공개 메소드

Removes a violation at a given offset.
public remove ( integer $offset )
$offset integer The offset to remove.

set() 공개 메소드

Sets a violation at a given offset.
public set ( integer $offset, ConstraintViolation $violation )
$offset integer The violation offset.
$violation ConstraintViolation The violation.

프로퍼티 상세

$violations 보호되어 있는 프로퍼티

The constraint violations
protected array $violations
리턴 array