| 1 | <?php |
||
| 8 | class SeederCreator |
||
| 9 | { |
||
| 10 | use Filesystem; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Yarak config. |
||
| 14 | * |
||
| 15 | * @var Config |
||
| 16 | */ |
||
| 17 | protected $config; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Construct. |
||
| 21 | * |
||
| 22 | * @param Config $config |
||
| 23 | */ |
||
| 24 | public function __construct(Config $config) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create a seeder file with the given name. |
||
| 31 | * |
||
| 32 | * @param string $name |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function create($name) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the stub and insert the given class name. |
||
| 55 | * |
||
| 56 | * @param string $name |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getStub($name) |
||
| 66 | } |
||
| 67 |