Skip to content

Commit

Permalink
ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
webcrud committed Sep 17, 2021
1 parent 25355db commit 74a1e79
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions src/Business/Api/Entity/ApiEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 74a1e79

Please sign in to comment.