1 | <?php |
||
8 | abstract class Creator |
||
9 | { |
||
10 | use Filesystem; |
||
11 | |||
12 | /** |
||
13 | * Yarak config. |
||
14 | * |
||
15 | * @var Config |
||
16 | */ |
||
17 | protected $config; |
||
18 | |||
19 | /** |
||
20 | * Output strategy. |
||
21 | * |
||
22 | * @var Output |
||
23 | */ |
||
24 | protected $output; |
||
25 | |||
26 | /** |
||
27 | * Construct. |
||
28 | * |
||
29 | * @param Output $output |
||
30 | */ |
||
31 | public function __construct(Output $output) |
||
37 | |||
38 | /** |
||
39 | * Set the namespace in the command stub. |
||
40 | * |
||
41 | * @param string $stub |
||
42 | * @param string $namespace |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function setNamespace($stub, $namespace = null) |
||
58 | |||
59 | /** |
||
60 | * Output nothing created message if no all bools are false. |
||
61 | * |
||
62 | * @param array $bools |
||
63 | */ |
||
64 | protected function outputNothingCreated(array $bools) |
||
76 | } |
||
77 |