for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Graphp\Util;
/**
* Class IntegerSupplier
*
* @package Graphp\Util
*/
class IntegerSupplier implements SupplierInterface
{
* Supplier value
* @var int
private static $i = 0;
* Construct supplier value
* @param int $start - starting value
public function __construct(int $start)
self::$i = $start;
}
* Get supplier value
* @return int
public function get(): int
return self::$i++;