for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Util;
use Jabe\Engine\Impl\Util\Concurrent\RunnableInterface;
class TestTask implements RunnableInterface, \Serializable
{
private $name;
public function __construct(string $name)
$this->name = $name;
}
public function serialize()
return json_encode([
'name' => $this->name
]);
public function unserialize($data)
$json = json_decode($data);
$this->name = $json->name;
public function getName(): string
return $this->name;
public function run(): void
$count = 0;
$num = 2;
$prime = null;
$prime
$divs;
$divs
while ($count < 2000) {
$divs = 0;
for ($i = 1; $i <= $num; $i += 1) {
if (($num % $i) == 0) {
$divs += 1;
if ($divs < 3) {
$prime = $num;
$count += 1;
$num += 1;