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;
    }