@@ 102-112 (lines=11) @@ | ||
99 | * @param string $namespace The namespace |
|
100 | * @return Collection The uses. |
|
101 | */ |
|
102 | public function getUses($namespace) |
|
103 | { |
|
104 | return $this->streams->map( |
|
105 | function ($stream) use ($namespace) |
|
106 | { |
|
107 | $name = ucfirst(str_singular($stream->getSlug())); |
|
108 | ||
109 | return "use {$namespace}\\{$name}\\{$name}Seeder;"; |
|
110 | } |
|
111 | ); |
|
112 | } |
|
113 | ||
114 | /** |
|
115 | * Gets the calls. |
|
@@ 119-129 (lines=11) @@ | ||
116 | * |
|
117 | * @return Collection The calls. |
|
118 | */ |
|
119 | public function getCalls() |
|
120 | { |
|
121 | return $this->streams->map( |
|
122 | function ($stream) |
|
123 | { |
|
124 | $name = ucfirst(str_singular($stream->getSlug())); |
|
125 | ||
126 | return "\$this->call({$name}Seeder::class);"; |
|
127 | } |
|
128 | ); |
|
129 | } |
|
130 | ||
131 | /** |
|
132 | * Gets the name. |