public function __construct(StoryTeller $st, $params)
{
// do we HAVE a valid response?
if (!isset($params[0])) {
throw new E5xx_ExpectFailed(__METHOD__, "HttpClientResponse object", "missing object");
}
$response = $params[0];
if (!is_object($response)) {
throw new E5xx_ExpectFailed(__METHOD__, "HttpClientResponse object", gettype($response));
}
if (!$response instanceof HttpClientResponse) {
throw new E5xx_ExpectFailed(__METHOD__, "HttpClientResponse object", get_class($response));
}
// call our parent constructor
parent::__construct($st, array($response));
}