| 1 | <?php |
||
| 18 | class Field extends FakerModuleGenerator |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Field model class instance |
||
| 23 | * @var \gplcart\core\models\Field $field |
||
| 24 | */ |
||
| 25 | protected $field; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param FieldModel $field |
||
| 29 | */ |
||
| 30 | public function __construct(FieldModel $field) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns the generator name |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getName() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Generate a single field |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function create() |
||
| 64 | |||
| 65 | } |
||
| 66 |