Final Class Yiisoft\Yii\Testing\ResponseGrabber
| Inheritance | Yiisoft\Yii\Testing\ResponseGrabber |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getResponse() | Yiisoft\Yii\Testing\ResponseGrabber | |
| setResponse() | Yiisoft\Yii\Testing\ResponseGrabber |
Method Details
| public Yiisoft\Yii\Testing\ResponseAccessor getResponse ( ) |
public function getResponse(): ResponseAccessor
{
return $this->response ?? throw new RuntimeException('Response is null');
}
| public void setResponse ( \Psr\Http\Message\ResponseInterface|null $response ) | ||
| $response | \Psr\Http\Message\ResponseInterface|null | |
public function setResponse(?ResponseInterface $response): void
{
$this->response = $response === null ? null : new ResponseAccessor($response);
}
Signup or Login in order to comment.