Méthode | Description | |
---|---|---|
cancel ( ) : self | Cancel the response and send a 403 header | |
getData ( ) : stdClass | Get the response data, which will be a stdClass object with property "value" | |
getTtl ( ) : integer | Get the max-age for client caching | |
isCancelled ( ) : boolean | Has the response been cancelled? | |
setData ( stdClass $data ) : self | Set the response data | |
setTtl ( integer $ttl ) : self | Set the max-age for client caching |
public cancel ( ) : self | ||
Résultat | self |
public getData ( ) : stdClass | ||
Résultat | stdClass |
public isCancelled ( ) : boolean | ||
Résultat | boolean |
public setData ( stdClass $data ) : self | ||
$data | stdClass | Response data. Must be able to be encoded in JSON. |
Résultat | self |