You are here

class AuthcacheP13nTestContextProviderStub in Authenticated User Page Caching (Authcache) 7.2

Stub context provider.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestContextProviderStub

File

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

View source
class AuthcacheP13nTestContextProviderStub implements AuthcacheP13nContextProviderInterface {
  protected $observer;

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestContextProviderStub::$observer protected property
AuthcacheP13nTestContextProviderStub::get public function Build and return context for the current request. Overrides AuthcacheP13nContextProviderInterface::get
AuthcacheP13nTestContextProviderStub::__construct public function Construct new stub class.