Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
meuppt committed Mar 6, 2021
1 parent 7ac7c1c commit 8a62197
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Cacheton.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,17 @@ public function setExpire(int $seconds) {
$this->expires = $seconds;
}

/**
* Prevents calling the class using the new keyword, if the __construct is protected.
*
* @return void
*/
private function __construct() {}

/**
* Prevents cloning the multiton instances.
*
* @return void
*/
final private function __clone() {}
private function __clone() {}

/**
* Prevents unserializing the multiton instances.
*
* @return void
*/
final private function __wakeup() {}
private function __wakeup() {}
}

0 comments on commit 8a62197

Please sign in to comment.