From 74a1e79f4b35672b711d3135daafdf81096832de Mon Sep 17 00:00:00 2001 From: Eric Teixeira Date: Thu, 16 Sep 2021 21:40:24 -0300 Subject: [PATCH] ajustes --- src/Business/Api/Entity/ApiEntity.php | 51 --------------------------- 1 file changed, 51 deletions(-) diff --git a/src/Business/Api/Entity/ApiEntity.php b/src/Business/Api/Entity/ApiEntity.php index c5aab30..fd20c7a 100644 --- a/src/Business/Api/Entity/ApiEntity.php +++ b/src/Business/Api/Entity/ApiEntity.php @@ -8,11 +8,7 @@ class ApiEntity extends DatabaseEntity { const TABLE = 'api'; protected $id; - protected $authfast_id; protected $name; - protected $img_logo; - protected $terms_privacy; - protected $terms_use; protected $created_at; protected $updated_at; protected $expired_at; @@ -26,16 +22,6 @@ public function getId() { return $this->id; } - public function getAuthfastId() - { - return $this->authfast_id; - } - public function setAuthfastId($authfastId) - { - $this->authfast_id = $authfastId; - - return $this; - } public function setName($name) { $this->name = $name; @@ -45,39 +31,6 @@ public function getName() { return $this->name; } - public function setImgLogo($img_logo) - { - $this->img_logo = $img_logo; - return $this; - } - public function getImgLogo(bool $withUrl = null) - { - if ($withUrl) { - if (trim($this->img_logo) == '' || !is_file(PATH_UPLOADS . 'application' . DS . $this->img_logo)) { - return asset('app/img/no-user.png'); - } - return upload('application/' . $this->img_logo); - } - return $this->img_logo; - } - public function setTermsPrivacy($terms_privacy) - { - $this->terms_privacy = $terms_privacy; - return $this; - } - public function getTermsPrivacy() - { - return $this->terms_privacy; - } - public function setTermsUse($terms_use) - { - $this->terms_use = $terms_use; - return $this; - } - public function getTermsUse() - { - return $this->terms_use; - } public function setCreatedAt($created_at) { $this->created_at = $created_at; @@ -122,11 +75,7 @@ public function setTrash($trash) public function toArray() { return [ - 'authfast_id' => $this->getAuthfastId(), 'name' => $this->getName(), - 'img_logo' => $this->getImgLogo(), - 'terms_privacy' => $this->getTermsPrivacy(), - 'terms_use' => $this->getTermsUse(), 'created_at' => $this->getCreatedAt(), 'updated_at' => $this->getUpdatedAt(), 'expired_at' => $this->getExpiredAt(),