class_name = "UserSNS"; parent::__construct(); $this->class_path .= $this->class_name; } protected function getModel(): UserSNSModel { if ($this->_model === null) { $this->_model = new UserSNSModel(); } return $this->_model; } public function create(array $formDatas): UserSNSEntity { return $this->getModel()->create($formDatas); } public function modify(UserSNSEntity $entity, array $formDatas): UserSNSEntity { return $this->getModel()->modify($entity, $formDatas); } public function delete(): void { $this->getModel()->delete(); } }