class AuthcacheP13nTestContentEncoderStub in Authenticated User Page Caching (Authcache) 7.2
Stub class for content encoder.
Hierarchy
- class \AuthcacheP13nTestContentEncoderStub implements AuthcacheP13nContentEncoderInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestContentEncoderStub:: |
protected | property | ||
AuthcacheP13nTestContentEncoderStub:: |
public | function |
Return an appropriate internet media type string. Overrides AuthcacheP13nContentEncoderInterface:: |
|
AuthcacheP13nTestContentEncoderStub:: |
public | function |
Serialize a result produced by AuthcacheP13nContentBuilder::build(). Overrides AuthcacheP13nContentEncoderInterface:: |
|
AuthcacheP13nTestContentEncoderStub:: |
public | function | Construct new stub class. |