File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/give/src/TestData/Framework/Factory.php
Back
<?php namespace Give\TestData\Framework; use Faker\Generator; abstract class Factory implements FactoryContract { use ProviderForwarder; /** @var Generator */ protected $faker; public function __construct(Generator $faker) { $this->faker = $faker; } /** * @param int $count * * @return \Generator */ public function make($count) { for ($i = 0; $i < $count; $i++) { yield $this->definition(); } } /** * Always generate consistent data * * @param bool $consistent * * @return Factory */ public function consistent($consistent = true) { if ($consistent) { $this->faker->seed(mt_getrandmax()); } return $this; } abstract public function definition(); }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings