public function checkLocked() { if ($this->settings[FarmSetting::LOCK]) { throw new LockedException($this->settings[FarmSetting::LOCK_BY], $this, $this->settings[FarmSetting::LOCK_COMMENT]); } }