You are here

class AuthcacheP13nTestContentBuilderStub in Authenticated User Page Caching (Authcache) 7.2

Stub class for content builder.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestContentBuilderStub

File

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

View source
class AuthcacheP13nTestContentBuilderStub implements AuthcacheP13nContentBuilderInterface {
  protected $observer;

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestContentBuilderStub::$observer protected property
AuthcacheP13nTestContentBuilderStub::build public function Build and return the content defined by the input parameters. Overrides AuthcacheP13nContentBuilderInterface::build
AuthcacheP13nTestContentBuilderStub::__construct public function Construct new stub class.