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