params); } /** * Clone an existing query for a subsequent modifying and building. */ public function clone(LockTable $query): self { $this->cloneInternal($query); return $this; } /** * What entity type to lock. */ public function table(string $entityType): self { $this->params['table'] = $entityType; return $this; } /** * In SHARE mode. */ public function inShareMode(): self { $this->params['mode'] = LockTable::MODE_SHARE; return $this; } /** * In EXCLUSIVE mode. */ public function inExclusiveMode(): self { $this->params['mode'] = LockTable::MODE_EXCLUSIVE; return $this; } }