protected function applyFlock(bool $exclusiveLock)
    {
        $lockOption = $exclusiveLock === true ? LOCK_EX : LOCK_SH;

        if (flock($this->filePointer, $lockOption) !== true) {
            throw new LockNotAcquiredException(sprintf('Could not lock file "%s"', $this->lockFileName), 1386520597);
        }
    }
protected function applyFlock(bool $exclusiveLock)
    {
        $lockOption = $exclusiveLock === true ? LOCK_EX : LOCK_SH;

        if (flock($this->filePointer, $lockOption) !== true) {
            throw new LockNotAcquiredException(sprintf('Could not lock file "%s"', $this->lockFileName), 1386520597);
        }
    }
protected function applyFlock ( bool $ exclusiveLock ) { $ lockOption = $ exclusiveLock === true ? LOCK_EX : LOCK_SH ; if ( flock ( $ this -> filePointer , $ lockOption ) !== true ) { throw new LockNotAcquiredException ( sprintf ( 'Could not lock file "%s"' , $ this -> lockFileName ) , 1386520597 ) ; } }
apply flock to the opened lock file.

@param boolean $exclusiveLock
@throws LockNotAcquiredException
apply flock to the opened lock file .