protected function setLockDirectory($lockDirectory)
    {
        if (! is_dir($lockDirectory)) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid directory', $lockDirectory));
        }

        if (! is_writable($lockDirectory)) {
            throw new InvalidArgumentException(sprintf('"%s" is not a writable directory', $lockDirectory));
        }

        $this->lockDirectory = $lockDirectory;
    }
protected function setLockDirectory($lockDirectory)
    {
        if (! is_dir($lockDirectory)) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid directory', $lockDirectory));
        }

        if (! is_writable($lockDirectory)) {
            throw new InvalidArgumentException(sprintf('"%s" is not a writable directory', $lockDirectory));
        }

        $this->lockDirectory = $lockDirectory;
    }
protected function setLockDirectory ( $ lockDirectory ) { if ( ! is_dir ( $ lockDirectory ) ) { throw new InvalidArgumentException ( sprintf ( '"%s" is not a valid directory' , $ lockDirectory ) ) ; } if ( ! is_writable ( $ lockDirectory ) ) { throw new InvalidArgumentException ( sprintf ( '"%s" is not a writable directory' , $ lockDirectory ) ) ; } $ this -> lockDirectory = $ lockDirectory ; }
Defines the lock directory.

@param string $lockDirectory Directory were pidfile should be stored.

@throws InvalidArgumentException When lock directory is not valid.
Defines the lock directory .