From 04c4ff79693dec1382b5af2a9a1bb3c508a7c092 Mon Sep 17 00:00:00 2001 From: Emanuel Aguirre Date: Wed, 18 Sep 2019 13:45:35 -0300 Subject: [PATCH] Update OptimisticLocking.php Make disableLocking() method public. Make lockingEnabled() method public. --- src/OptimisticLocking.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OptimisticLocking.php b/src/OptimisticLocking.php index b351dc3..170a6fd 100644 --- a/src/OptimisticLocking.php +++ b/src/OptimisticLocking.php @@ -135,7 +135,7 @@ protected static function defaultLockVersion() * * @return bool */ - protected function lockingEnabled() + public function lockingEnabled() { return $this->lock === null ? true : $this->lock; } @@ -145,7 +145,7 @@ protected function lockingEnabled() * * @return $this */ - protected function disableLocking() + public function disableLocking() { $this->lock = false; return $this;