57 $pathsByType = is_int( $type ) ? [ $type => $paths ] : $paths;
60 if ( $lockStatus->isOK() ) {
83 $wasOk = $this->status->isOK();
84 $this->status->merge( $this->manager->unlockByType( $this->pathsByType ) );
87 $this->status->setResult(
true, $this->status->value );
92class_alias( ScopedLock::class,
'ScopedLock' );
Generic operation result class Has warning/error list, boolean status and arbitrary value.
merge( $other, $overwriteValue=false)
Merge another status object into this one.