src/MutexLock.php
static function giveDefaultLocksDir($dirPath)
    {
        if ( isset(static::$defLockDirectory) )
            throw new exImmutable(sprintf(
                'Default Lock Directory Has Value: (%s).'
                , static::$defLockDirectory
            ));


        $dirPath = (string) $dirPath;
        if (! (is_dir($dirPath) && is_writable($dirPath))  )
            throw new \RuntimeException(sprintf(
                'Lock Folder (%s) Is Not A Writable Directory Or Not Exists.'
                , $dirPath
            ));


        static::$defLockDirectory = $dirPath;
    }
static function giveDefaultLocksDir($dirPath)
    {
        if ( isset(static::$defLockDirectory) )
            throw new exImmutable(sprintf(
                'Default Lock Directory Has Value: (%s).'
                , static::$defLockDirectory
            ));


        $dirPath = (string) $dirPath;
        if (! (is_dir($dirPath) && is_writable($dirPath))  )
            throw new \RuntimeException(sprintf(
                'Lock Folder (%s) Is Not A Writable Directory Or Not Exists.'
                , $dirPath
            ));


        static::$defLockDirectory = $dirPath;
    }
static function giveDefaultLocksDir ( $ dirPath ) { if ( isset ( static :: $ defLockDirectory ) ) throw new exImmutable ( sprintf ( 'Default Lock Directory Has Value: (%s).' , static :: $ defLockDirectory ) ) ; $ dirPath = ( string ) $ dirPath ; if ( ! ( is_dir ( $ dirPath ) && is_writable ( $ dirPath ) ) ) throw new \ RuntimeException ( sprintf ( 'Lock Folder (%s) Is Not A Writable Directory Or Not Exists.' , $ dirPath ) ) ; static :: $ defLockDirectory = $ dirPath ; }
Set Default Locks Directory

@param string $dirPath
Set Default Locks Directory