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