public function save(bool $force = false) { if ($this->localMockHasExpectationsFor('save')) { return $this->getLocalMock()->save(); } if ($force || $this->isValid()) { $this->hashAttributes(); return parent::save(); } return false; }