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 properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.