_model === null) { $this->_model = new UserModel(); } return $this->_model; } public function find(array $wheres): ?UserEntity { return $this->getModel()->where($wheres)->first(); } public function findAll(array $wheres = []): array { return $this->getModel()->where($wheres)->findAll(); } public function create(array $formDatas): UserEntity { return $this->getModel()->create($formDatas); } public function modify(UserEntity $entity, array $formDatas): UserEntity { return $this->getModel()->modify($entity, $formDatas); } public function delete(array $wheres): void { $this->getModel()->where($wheres)->delete(); } }