getResult(); if (!$result) { //결과값이 없으면 null return $result; } } $entityClass = $this->getEntityClass(); return new $entityClass($result); } public function getEntitys(): array { $entitys = []; foreach ($this->getResults() as $result) { $entitys[] = $this->getEntity($result); } return $entitys; } // } //Class