Source of file MockIntField.php
Size: 0,475 Bytes - Last Modified: 2021-12-23T10:56:24+00:00
/var/www/docs.ssmods.com/process/src/code/fieldtypes/MockIntField.php
12345678910111213141516171819202122232425262728 | <?php /** * Defines the methods that are injected into the {@link Int} class for * generating mock data * * @package silverstripe-mock-data * @author Uncle Cheese <unclecheese@leftandmain.com> */ use Faker\Generator; class MockIntField extends DataExtension { /** * Gets a random integer * * @param Faker\Generator * @return int */ public function getFakeData(Generator $faker) { return $faker->randomNumber(); } } |