public function addPaths($paths)
    {
        $paths = is_array($paths) ? $paths : [$paths];

        foreach ($paths as $key => $path) {
            $key = is_int($key) ? null : $key;

            $this->addPath($path, $key);
        }

        return $this;
    }
public function addPaths($paths)
    {
        $paths = is_array($paths) ? $paths : [$paths];

        foreach ($paths as $key => $path) {
            $key = is_int($key) ? null : $key;

            $this->addPath($path, $key);
        }

        return $this;
    }
public function addPaths ( $ paths ) { $ paths = is_array ( $ paths ) ? $ paths : [ $ paths ] ; foreach ( $ paths as $ key => $ path ) { $ key = is_int ( $ key ) ? null : $ key ; $ this -> addPath ( $ path , $ key ) ; } return $ this ; }
Batch add paths to bag.

@param  mixed $paths Paths to add to path bag, string will be converted to PathLocator object.

@return  PathCollection  Return this object to support chaining.

@since  2.0
Batch add paths to bag .