for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yarak\DB\Seeders;
abstract class Seeder
{
/**
* SeedRunner instance.
*
* @var SeedRunner
*/
protected $runner;
* Run the database seed logic.
abstract public function run();
* Call the run method on the given seeder class.
* @param string $class
protected function call($class)
$this->runner->run($class);
}
* Set SeedRunner instance on object.
* @param SeedRunner $runner
public function setRunner(SeedRunner $runner)
$this->runner = $runner;