Final Class Yiisoft\Yii\Testing\ResponseGrabber
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getResponse() | Yiisoft\ |
|
| setResponse() | Yiisoft\ |
Method Details
| public Yiisoft\ |
public function getResponse(): ResponseAccessor
{
return $this->response ?? throw new RuntimeException('Response is null');
}
| public void setResponse ( ?\ | ||
| $response | ?\ |
|
public function setResponse(?ResponseInterface $response): void
{
$this->response = $response === null ? null : new ResponseAccessor($response);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.