PHP 인터페이스 Pinq\Iterators\ISet

저자: Elliot Levin ([email protected])
상속: extends Countable, extends Traversable
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
add ( mixed $value ) : boolean Attempts to add the value to the set, will fail if the value is already contained in the set.
addRef ( mixed &$value ) : boolean Attempts to add the value by reference to the set, will fail if the value is already contained in the set.
clear ( ) : void Removes all values from the set.
contains ( mixed $value ) : boolean Returns whether the values in contained in the set.
remove ( mixed $value ) : boolean Attempts to remove the value from the set, will fail if the value is not contained in the set.

메소드 상세

add() 공개 메소드

Attempts to add the value to the set, will fail if the value is already contained in the set.
public add ( mixed $value ) : boolean
$value mixed
리턴 boolean Whether the value was successfully added

addRef() 공개 메소드

Attempts to add the value by reference to the set, will fail if the value is already contained in the set.
public addRef ( mixed &$value ) : boolean
$value mixed
리턴 boolean Whether the value was successfully added

clear() 공개 메소드

Removes all values from the set.
public clear ( ) : void
리턴 void

contains() 공개 메소드

Returns whether the values in contained in the set.
public contains ( mixed $value ) : boolean
$value mixed
리턴 boolean

remove() 공개 메소드

Attempts to remove the value from the set, will fail if the value is not contained in the set.
public remove ( mixed $value ) : boolean
$value mixed
리턴 boolean Whether the value was successfully removed