diff --git a/extdbms/lib/Entities/ClientEntity.php b/extdbms/lib/Entities/ClientEntity.php index e80741f..a71d486 100644 --- a/extdbms/lib/Entities/ClientEntity.php +++ b/extdbms/lib/Entities/ClientEntity.php @@ -13,12 +13,12 @@ class ClientEntity extends Entity { parent::__construct($datas); } // - public function getPhone(string $field = ""): string + public function getPhone(string $field = "", string $delimeter = ","): string { - return $field ? $this->$field : "{$this->Client_Phone1},{$this->Client_Phone2}"; + return $field ? $this->$field : "{$this->Client_Phone1} {$delimeter} {$this->Client_Phone2}"; } - public function getEmail(string $field = ""): string + public function getEmail(string $field = "", string $delimeter = ","): string { - return $field ? $this->$field : "{$this->Client_EMail1},{$this->Client_EMail2}"; + return $field ? $this->$field : "{$this->Client_EMail1} {$delimeter} {$this->Client_EMail2}"; } } //Class diff --git a/extdbms/lib/Services/ServiceService.php b/extdbms/lib/Services/ServiceService.php index 37c678a..f5c3379 100644 --- a/extdbms/lib/Services/ServiceService.php +++ b/extdbms/lib/Services/ServiceService.php @@ -35,7 +35,7 @@ class ServiceService extends CommonService public function getEntitysByIP(string $value): mixed { $this->getModel()->where("service_ip", $value); - return $this->getEntity(); + return $this->getEntitys(); } public function getEntitysByCodes(array $values): array {