for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Funivan\CabbageCore\Int\IntList;
class PredefinedIntList implements IntListInterface
{
/**
* @var int[]
*/
private $values;
public function __construct(int ...$values)
$this->values = $values;
}
* @return int[]|\Generator
public function all(): \Generator
yield from $this->values;