芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/fakerphp/faker/src/Faker/ORM/Mandango/ColumnTypeGuesser.php
<?php namespace Faker\ORM\Mandango; use Faker\Generator; class ColumnTypeGuesser { /** * @var Generator */ protected $generator; public function __construct(Generator $generator) { $this->generator = $generator; } /** * @return \Closure|null */ public function guessFormat($field) { $generator = $this->generator; switch ($field['type']) { case 'boolean': return static function () use ($generator) { return $generator->boolean; }; case 'integer': return static function () use ($generator) { return $generator->numberBetween(0, 4294967295); }; case 'float': return static function () use ($generator) { return $generator->randomFloat(); }; case 'string': return static function () use ($generator) { return $generator->text(255); }; case 'date': return static function () use ($generator) { return $generator->dateTime; }; default: // no smart way to guess what the user expects here return null; } } }