public function addDir($dir)
    {
        if (!is_dir($dir)) {
            throw new LogicException(sprintf(
                'Provided path "%s" is not a directory', $dir
            ));
        }

        array_push($this->dirs, $dir);
        return $this;
    }
public function addDir($dir)
    {
        if (!is_dir($dir)) {
            throw new LogicException(sprintf(
                'Provided path "%s" is not a directory', $dir
            ));
        }

        array_push($this->dirs, $dir);
        return $this;
    }
public function addDir ( $ dir ) { if ( ! is_dir ( $ dir ) ) { throw new LogicException ( sprintf ( 'Provided path "%s" is not a directory' , $ dir ) ) ; } array_push ( $ this -> dirs , $ dir ) ; return $ this ; }
Add a base directory

@param string $dir
@throws \LogicException if $dir isn't path to a directory on the file-system
@return \Krystal\Autoloader\PSR0
Add a base directory