PHP Class Phue\TimePattern\Timer

Inheritance: extends AbstractTimePattern
Show file Open project: sqmk/phue Class Usage Examples

Protected Properties

Property Type Description
$repeat integer Number of times to repeat
$seconds integer Number of seconds until event

Public Methods

Method Description
__construct ( $seconds ) Instantiate
__toString ( ) : string To string
repeat ( integer $count ) : self Repeat count.

Method Details

__construct() public method

Instantiate
public __construct ( $seconds )

__toString() public method

To string
public __toString ( ) : string
return string Formatted date

repeat() public method

Repeat count.
public repeat ( integer $count ) : self
$count integer Number of times to repeat
return self This object

Property Details

$repeat protected property

Number of times to repeat
protected int $repeat
return integer

$seconds protected property

Number of seconds until event
protected int $seconds
return integer