Method | Description | |
---|---|---|
__construct ( array $incrementables = [] ) | Sets the Incrementable objects. | |
addIncrementable ( phpmock\functions\Incrementable $incrementable ) | Adds an Incrementable object. | |
getCallable ( ) : callable | Returns the sleep() mock function. |
Method | Description | |
---|---|---|
convertToSeconds ( integer $amount ) : mixed | Converts the sleep() parameter into seconds. |
public __construct ( array $incrementables = [] ) | ||
$incrementables | array | Observing Incrementables. |
public addIncrementable ( phpmock\functions\Incrementable $incrementable ) | ||
$incrementable | phpmock\functions\Incrementable | Observing Incrementable. |
abstract protected convertToSeconds ( integer $amount ) : mixed | ||
$amount | integer | Amount of time units. |
return | mixed | Seconds. |
public getCallable ( ) : callable | ||
return | callable | The callable for this object. |