Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function create($name) |
||
37 | { |
||
38 | $seedDir = $this->config->getSeedDirectory(); |
||
39 | |||
40 | $this->makeDirectoryStructure([ |
||
41 | $this->config->getDatabaseDirectory(), |
||
42 | $seedDir, |
||
43 | ]); |
||
44 | |||
45 | $this->writeFile( |
||
46 | $path = $seedDir.$name.'.php', |
||
47 | $this->getStub($name) |
||
48 | ); |
||
49 | |||
50 | return $path; |
||
51 | } |
||
52 | |||
67 |