Skip to content

Commit

Permalink
Added Domain::canRenew()
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 21, 2016
1 parent ce025eb commit cf81a2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/models/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,4 +452,9 @@ public static function getCategoriesCount($zone, $data)

return $i;
}

public function canRenew()
{
return in_array($this->state, [static::STATE_OK, static::STATE_EXPIRED]);
}
}

0 comments on commit cf81a2d

Please sign in to comment.