for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gendoria\CruftFlake\Local;
use Gendoria\CruftFlake\ClientInterface;
use Gendoria\CruftFlake\Generator\Generator;
/**
* Local CruftFlake client.
*
* **WARNING** - it should **NOT** be used in production environment,
* unless each instance is guaranteed to receive unique machine ID.
* @author Tomasz Struczyński <[email protected]>
*/
class LocalClient implements ClientInterface
{
* Generator instance.
* @var Generator
private $generator;
* Construct local client class injected with generator instance.
* @param Generator $generator
public function __construct(Generator $generator)
$this->generator = $generator;
}
* {@inheritdoc}
public function generateId()
return $this->generator->generate();
public function status()
return $this->generator->status();