Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 

PHP Memoize Trait

Usage

Prefix any method name with an underscore (_) to memoize calls to that method.

$instance = new Object();
$instance->method();  // normal
$instance->_method(); // memoized

Note: Requires special consideration when your class (or a super class) already implements the magic __call method.

Test

% phpunit tests/MemoizeTest.php 

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages