mirror of
https://github.com/php/phpruntests.git
synced 2026-03-25 16:42:07 +01:00
22 lines
233 B
PHP
22 lines
233 B
PHP
<?php
|
|
|
|
class taskSleep extends task implements taskInterface
|
|
{
|
|
private $sleep = 0;
|
|
|
|
|
|
public function __construct($sleep)
|
|
{
|
|
$this->sleep = $sleep;
|
|
}
|
|
|
|
|
|
public function run()
|
|
{
|
|
sleep($this->sleep);
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
?>
|