You are here

public function RestfulRateLimit::hit in RESTful 7

Saves an extra hit.

File

includes/RestfulRateLimit.php, line 14
Contains RestfulRateLimit.

Class

RestfulRateLimit
@file Contains RestfulRateLimit.

Code

public function hit() {
  $this->hits++;
  $this
    ->save();
}