Fake\Generator 类定义中 没找到 randomElement () 方法 ?
在 /vendor/fzaninotto/faker/src/Faker/Geneator.php 文件中没有找到 randomElement() 成员方法, 只在注释里面出现了, 这个类也没有继承其它类或接口, 那么这个方法是怎么实现的呢?
/*
* @method mixed randomElement(array $array = array('a', 'b', 'c'))
* @method array randomElements(array $array = array('a', 'b', 'c'), $count = 1, $allowDuplicates = false)
*/
推荐文章: