public function call(string $class): void
    {
        $files = $this->all($class);

        if (count($files) < 1) {
            throw InvalidArgumentException::forNotFoundSeeder();
        }

        foreach ($files as [$file, $content]) {
            $this->load($content);
            $this->resolve($file['filename'])->run();
        }
    }
public function call(string $class): void
    {
        $files = $this->all($class);

        if (count($files) < 1) {
            throw InvalidArgumentException::forNotFoundSeeder();
        }

        foreach ($files as [$file, $content]) {
            $this->load($content);
            $this->resolve($file['filename'])->run();
        }
    }
public function call ( string $ class ) : void { $ files = $ this -> all ( $ class ) ; if ( count ( $ files ) < 1 ) { throw InvalidArgumentException :: forNotFoundSeeder ( ) ; } foreach ( $ files as [ $ file , $ content ] ) { $ this -> load ( $ content ) ; $ this -> resolve ( $ file [ 'filename' ] ) -> run ( ) ; } }
Call seeder once.

@param string $class
@return void
@throws \Invoker\Exception\InvocationException
@throws \Invoker\Exception\NotCallableException
@throws \Invoker\Exception\NotEnoughParametersException
@throws \League\Flysystem\FileNotFoundException
@throws \Roquie\Database\Seed\Exception\InvalidArgumentException
Call seeder once .