public function setBasePath($basePath = '')
    {
        if (gettype($basePath) === 'string') {
            $this->basePath = $basePath;
        } else {
            $msg = "The basePath argument must be a valid string, '" . gettype($basePath) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }