| 1 | <?php |
||
| 20 | class Response extends \PhpRestfulApiResponse\Response implements ResponseInterface |
||
| 21 | { |
||
| 22 | use MessageTrait, InjectContentTypeTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Response constructor. |
||
| 26 | * @param string $body |
||
| 27 | * @param int $status |
||
| 28 | * @param int $errorCode |
||
| 29 | * @param array $headers |
||
| 30 | */ |
||
| 31 | public function __construct($body = 'php://memory', int $status = 200, $errorCode = null, array $headers = []) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Response |
||
| 41 | */ |
||
| 42 | public function asJSON() : ResponseInterface |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return Response |
||
| 52 | */ |
||
| 53 | public function asHTML() : ResponseInterface |
||
| 60 | } |
This check looks for access to methods that are not accessible from the current context.
If you need to make a method accessible to another context you can raise its visibility level in the defining class.