You are here

public static function AuthcacheP13nObjectFactory::acceptClass in Authenticated User Page Caching (Authcache) 7.2

Only return value if it can be used in place of the given class.

Return value

var|NULL The input value or NULL.

File

modules/authcache_p13n/includes/AuthcacheP13nObjectFactory.inc, line 332
Defines the class AuthcacheP13nObjectFactory.

Class

AuthcacheP13nObjectFactory
A utility class helping with dependency injection.

Code

public static function acceptClass($value, $class) {
  if (is_a($value, $class)) {
    return $value;
  }
}