You are here

class AuthcacheP13nTestContentEncoderStub in Authenticated User Page Caching (Authcache) 7.2

Stub class for content encoder.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestContentEncoderStub

File

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

View source
class AuthcacheP13nTestContentEncoderStub implements AuthcacheP13nContentEncoderInterface {
  protected $observer;

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestContentEncoderStub::$observer protected property
AuthcacheP13nTestContentEncoderStub::contentType public function Return an appropriate internet media type string. Overrides AuthcacheP13nContentEncoderInterface::contentType
AuthcacheP13nTestContentEncoderStub::encode public function Serialize a result produced by AuthcacheP13nContentBuilder::build(). Overrides AuthcacheP13nContentEncoderInterface::encode
AuthcacheP13nTestContentEncoderStub::__construct public function Construct new stub class.