src/Yggdrasil/Utils/Seeds/AbstractSeeds.php
protected function clearStorage(string $storage = null): void
    {
        if (empty($storage)) {
            $seedsReflection = new \ReflectionClass(get_class($this));
            $storage = strtolower(str_replace('Seeds', '', $seedsReflection->getShortName()));
        }

        if (!$this->seeder->truncate($storage)) {
            throw new SeedsStorageException("Unable to clear seeds storage: {$storage}");
        }
    }
protected function clearStorage(string $storage = null): void
    {
        if (empty($storage)) {
            $seedsReflection = new \ReflectionClass(get_class($this));
            $storage = strtolower(str_replace('Seeds', '', $seedsReflection->getShortName()));
        }

        if (!$this->seeder->truncate($storage)) {
            throw new SeedsStorageException("Unable to clear seeds storage: {$storage}");
        }
    }
protected function clearStorage ( string $ storage = null ) : void { if ( empty ( $ storage ) ) { $ seedsReflection = new \ ReflectionClass ( get_class ( $ this ) ) ; $ storage = strtolower ( str_replace ( 'Seeds' , '' , $ seedsReflection -> getShortName ( ) ) ) ; } if ( ! $ this -> seeder -> truncate ( $ storage ) ) { throw new SeedsStorageException ( "Unable to clear seeds storage: {$storage}" ) ; } }
Clears given seeds storage

@param string? $storage Storage name, if NULL seeds class name will be used to resolve storage name
@throws \ReflectionException
@throws SeedsStorageException
Clears given seeds storage