1 | <?php |
||
3 | class MovieEarningsTableSeeder extends Seeder { |
||
|
|||
4 | |||
5 | /** |
||
6 | * Cache earnings in a static variable for fast re-seeding |
||
7 | * @var |
||
8 | */ |
||
9 | private static $earnings; |
||
10 | |||
11 | /** |
||
12 | * Seed the Movie Earnings Table |
||
13 | */ |
||
14 | 9 | public function run() { |
|
44 | |||
45 | |||
46 | /** |
||
47 | * Reads a file and returns a generator |
||
48 | * |
||
49 | * @param $path |
||
50 | * @param bool $hasHeader |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | 1 | public function readFile($path, $hasHeader = true) { |
|
75 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.