You are here

class AuthcacheP13nTestFragmentLoaderStub in Authenticated User Page Caching (Authcache) 7.2

Stub fragment loader.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestFragmentLoaderStub

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 377
Stub classes for testing.

View source
class AuthcacheP13nTestFragmentLoaderStub implements AuthcacheP13nFragmentLoaderInterface {
  protected $observer;

  /**
   * Construct new stub class.
   */
  public function __construct($observer) {
    $this->observer = $observer;
  }

  /**
   * {@inheritdoc}
   */
  public function load($keys, $context) {
    return $this->observer
      ->record($this, __FUNCTION__, func_get_args());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestFragmentLoaderStub::$observer protected property
AuthcacheP13nTestFragmentLoaderStub::load public function Load the objects designated by the given list of keys. Overrides AuthcacheP13nFragmentLoaderInterface::load
AuthcacheP13nTestFragmentLoaderStub::__construct public function Construct new stub class.