You are here

public function RateLimit::isExpired in RESTful 7.2

Checks if the entity is expired.

File

src/RateLimit/Entity/RateLimit.php, line 37
Contains Drupal\restful\RateLimit\Entity\RateLimit.

Class

RateLimit

Namespace

Drupal\restful\RateLimit\Entity

Code

public function isExpired() {
  return REQUEST_TIME > $this->expiration;
}