public function doPathValidate(string $pathValue = null, $isWritable = true)
    {
        if ($pathValue != null) {
            if (!is_dir($pathValue)) {
                throw new ConfigSettingFailException("`{$pathValue}` does NOT existed", '400');
            }

            if ($isWritable == true) {
                if (!is_writable($pathValue)) {
                    throw new ConfigSettingFailException("`{$pathValue}`is NOT writable", '400');
                }
            }

        }
    }
public function doPathValidate(string $pathValue = null, $isWritable = true)
    {
        if ($pathValue != null) {
            if (!is_dir($pathValue)) {
                throw new ConfigSettingFailException("`{$pathValue}` does NOT existed", '400');
            }

            if ($isWritable == true) {
                if (!is_writable($pathValue)) {
                    throw new ConfigSettingFailException("`{$pathValue}`is NOT writable", '400');
                }
            }

        }
    }
public function doPathValidate ( string $ pathValue = null , $ isWritable = true ) { if ( $ pathValue != null ) { if ( ! is_dir ( $ pathValue ) ) { throw new ConfigSettingFailException ( "`{$pathValue}` does NOT existed" , '400' ) ; } if ( $ isWritable == true ) { if ( ! is_writable ( $ pathValue ) ) { throw new ConfigSettingFailException ( "`{$pathValue}`is NOT writable" , '400' ) ; } } } }
to do validate config params.

@param string|null $pathValue
@param bool $isWritable
to do validate config params .