PHP 클래스 XPSPL\SIG

The SIG object is the representation of a signal. Every SIG object is represented as an index, with each index being a valid indexable value. By default a SIG will generate it's index based simply on the value of the function get_class. The SIG object allows for unique signals by creating a child of SIG with the property of _unique set as true. .. note:: When a SIG is declared unique any index assigned to the SIG on construct will be ignored.
부터: 0.3.0
상속: use trait State
파일 보기 프로젝트 열기: prggmr/xpspl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_index string | integer Signal index.
$_parent object Parent signal.
$_unique boolean Declare this SIG as unique.

공개 메소드들

메소드 설명
__construct ( string | integer $index = null ) : void Constructs a new signal.
__get ( mixed $key ) : mixed | null Get a variable in the signal.
__isset ( mixed $key ) : boolean Checks for a variable in the signal.
__set ( string $key, mixed $value ) : boolean Set a variable in the signal.
__toString ( ) : string String representation.
__unset ( mixed $key ) : boolean Deletes a variable in the signal.
compare ( SIG $sig ) : boolean Compare if the given $sig is identical to this.
get_index ( ) : boolean Returns the signal index.
get_parent ( ) : null | object Retrieves this signal's parent.
halt ( ) : void Halts the signal execution.
is_child ( ) : boolean Determines if the signal is a child of another signal.
set_parent ( SIG $signal ) : void Sets the parent signal.

메소드 상세

__construct() 공개 메소드

Constructs a new signal.
public __construct ( string | integer $index = null ) : void
$index string | integer Signal Index
리턴 void

__get() 공개 메소드

Get a variable in the signal.
public __get ( mixed $key ) : mixed | null
$key mixed Variable name.
리턴 mixed | null

__isset() 공개 메소드

Checks for a variable in the signal.
public __isset ( mixed $key ) : boolean
$key mixed Variable name.
리턴 boolean

__set() 공개 메소드

Set a variable in the signal.
public __set ( string $key, mixed $value ) : boolean
$key string Name of variable
$value mixed Value to variable
리턴 boolean True

__toString() 공개 메소드

String representation.
public __toString ( ) : string
리턴 string

__unset() 공개 메소드

Deletes a variable in the signal.
public __unset ( mixed $key ) : boolean
$key mixed Variable name.
리턴 boolean

compare() 공개 메소드

Compare if the given $sig is identical to this.
public compare ( SIG $sig ) : boolean
$sig SIG SIG to compare.
리턴 boolean

get_index() 공개 메소드

Returns the signal index.
public get_index ( ) : boolean
리턴 boolean

get_parent() 공개 메소드

Retrieves this signal's parent.
public get_parent ( ) : null | object
리턴 null | object

halt() 공개 메소드

Halts the signal execution.
public halt ( ) : void
리턴 void

is_child() 공개 메소드

Determines if the signal is a child of another signal.
public is_child ( ) : boolean
리턴 boolean

set_parent() 공개 메소드

Sets the parent signal.
public set_parent ( SIG $signal ) : void
$signal SIG \XPSPL\Signal
리턴 void

프로퍼티 상세

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

Signal index.
protected string|int $_index
리턴 string | integer

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

Parent signal.
protected object $_parent
리턴 object

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

Declare this SIG as unique.
protected bool $_unique
리턴 boolean