PHP Class Phue\TimePattern\RandomizedTime

Inheritance: extends AbstractTimePattern
ファイルを表示 Open project: sqmk/phue

Protected Properties

Property Type Description
$date DateTime Date
$randomWithinSeconds integer Random within seconds

Public Methods

Method Description
__construct ( string $time, integer $randomWithinSeconds = null ) Instantiate
__toString ( ) : string To string

Method Details

__construct() public method

Instantiate
public __construct ( string $time, integer $randomWithinSeconds = null )
$time string Time value
$randomWithinSeconds integer Random within seconds

__toString() public method

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

Property Details

$date protected_oe property

Date
protected DateTime $date
return DateTime

$randomWithinSeconds protected_oe property

Random within seconds
protected int $randomWithinSeconds
return integer