PHP Класс Time\SIG_Awake

Send a signal to awake once a length of time has passed. Instructions are those defined as TIME_SECONDS, TIME_MILLISECONDS, TIME_MICROSECONDS.
Наследование: extends XPSPL\SIG_Routine
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_instruction Time instruction.
$_time Time to awake in.

Открытые методы

Метод Описание
__construct ( integer $time, $instruction = TIME_SECONDS ) : void Constructs a awake signal.
__toString ( ) : string String representation.
get_time ( ) : integer Returns the time for the signal.
routine ( Routine $routine = null ) : boolean Runs the routine.

Описание методов

__construct() публичный Метод

Constructs a awake signal.
public __construct ( integer $time, $instruction = TIME_SECONDS ) : void
$time integer Amount of time before emitting the signal.
Результат void

__toString() публичный Метод

String representation.
public __toString ( ) : string
Результат string

get_time() публичный Метод

Returns the time for the signal.
public get_time ( ) : integer
Результат integer

routine() публичный Метод

This checks if the appriorate amount of time has passed and emits the awake signal if so.
public routine ( Routine $routine = null ) : boolean
$routine XPSPL\Routine
Результат boolean

Описание свойств

$_instruction защищенное свойство

Time instruction.
protected $_instruction

$_time защищенное свойство

Time to awake in.
protected $_time