1 | <?php namespace Anomaly\Streams\Platform\Database\Seeder; |
||
16 | class Seeder extends BaseSeeder |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * The field repository. |
||
21 | * |
||
22 | * @var FieldRepositoryInterface $fields |
||
23 | */ |
||
24 | protected $fields; |
||
25 | |||
26 | /** |
||
27 | * The stream repository. |
||
28 | * |
||
29 | * @var StreamRepositoryInterface $streams |
||
30 | */ |
||
31 | protected $streams; |
||
32 | |||
33 | /** |
||
34 | * The assignment repository. |
||
35 | * |
||
36 | * @var AssignmentRepositoryInterface $assignments |
||
37 | */ |
||
38 | protected $assignments; |
||
39 | |||
40 | /** |
||
41 | * The environment this seeder |
||
42 | * applies too if any. |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $env = null; |
||
47 | |||
48 | /** |
||
49 | * Create a new Seeder instance. |
||
50 | */ |
||
51 | public function __construct() |
||
57 | |||
58 | /** |
||
59 | * Seed the given connection from the given path. |
||
60 | * |
||
61 | * @param string $class |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | public function call($class) |
||
79 | |||
80 | /** |
||
81 | * Return whether the seeder applies to |
||
82 | * the current environment or not. |
||
83 | * |
||
84 | * @return bool|null |
||
85 | */ |
||
86 | public function isEnvironment() |
||
90 | } |
||
91 |