src/wcmf/lib/persistence/concurrency/impl/DefaultLockHandler.php
protected function addSessionLock(Lock $lock) {
    $locks = $this->getSessionLocks();
    $locks[$lock->getObjectId()->__toString()] = $lock;
    $this->session->set(self::SESSION_VARNAME, $locks);
  }
protected function addSessionLock(Lock $lock) {
    $locks = $this->getSessionLocks();
    $locks[$lock->getObjectId()->__toString()] = $lock;
    $this->session->set(self::SESSION_VARNAME, $locks);
  }
protected function addSessionLock ( Lock $ lock ) { $ locks = $ this -> getSessionLocks ( ) ; $ locks [ $ lock -> getObjectId ( ) -> __toString ( ) ] = $ lock ; $ this -> session -> set ( self :: SESSION_VARNAME , $ locks ) ; }
Add a given Lock instance to the session
@param $lock Lock instance
Add a given Lock instance to the session