src/KeyStoreLoader/File.php
public function loadBulk(array $bulk)
    {
        foreach ($bulk as $user => $files) {
            if (!is_string($user)) {
                throw new \InvalidArgumentException();
            }

            if (!is_array($files) && !is_string($files)) {
                throw new \InvalidArgumentException();
            }

            $files = (array) $files;
            foreach ($files as $file) {
                $this->load($user, $file);
            }
        }
        return $this;
    }
public function loadBulk(array $bulk)
    {
        foreach ($bulk as $user => $files) {
            if (!is_string($user)) {
                throw new \InvalidArgumentException();
            }

            if (!is_array($files) && !is_string($files)) {
                throw new \InvalidArgumentException();
            }

            $files = (array) $files;
            foreach ($files as $file) {
                $this->load($user, $file);
            }
        }
        return $this;
    }
public function loadBulk ( array $ bulk ) { foreach ( $ bulk as $ user => $ files ) { if ( ! is_string ( $ user ) ) { throw new \ InvalidArgumentException ( ) ; } if ( ! is_array ( $ files ) && ! is_string ( $ files ) ) { throw new \ InvalidArgumentException ( ) ; } $ files = ( array ) $ files ; foreach ( $ files as $ file ) { $ this -> load ( $ user , $ file ) ; } } return $ this ; }
Bulk-load keys.

\param array $bulk
An array with information on the keys to load.
The keys in the array indicate users while
the values contain (an array of) files containing
the keys to load.

\retval File
Returns this loader.
Bulk - load keys .