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);
        }
    }
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);
        }
    }
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 ) ; } }
Set the basePath.

@param string $basePath A base path.
@throws \InvalidArgumentException If $basePath is not a string value.
Set the basePath .