public function lock(int $id): PodiumResponse
    {
        $threadLocker = $this->getLocker($id);

        if ($threadLocker === null) {
            throw new ModelNotFoundException('Thread of given ID can not be found.');
        }

        return $threadLocker->lock();
    }
public function lock(int $id): PodiumResponse
    {
        $threadLocker = $this->getLocker($id);

        if ($threadLocker === null) {
            throw new ModelNotFoundException('Thread of given ID can not be found.');
        }

        return $threadLocker->lock();
    }
public function lock ( int $ id ) : PodiumResponse { $ threadLocker = $ this -> getLocker ( $ id ) ; if ( $ threadLocker === null ) { throw new ModelNotFoundException ( 'Thread of given ID can not be found.' ) ; } return $ threadLocker -> lock ( ) ; }
Locks thread.
@param int $id
@return PodiumResponse
@throws ModelNotFoundException
Locks thread .