for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElfSundae\Laravel\Api\Exceptions;
use RuntimeException;
use ElfSundae\Laravel\Api\Http\ApiResponse;
class ApiResponseException extends RuntimeException
{
/**
* The underlying response instance.
*
* @var \ElfSundae\Laravel\Api\Http\ApiResponse
*/
protected $response;
* Create a new exception instance.
* @param mixed $data
* @param int $code
* @param array $headers
* @param int $options
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($data = null, $code = -1, $headers = [], $options = 0)
$this->response = new ApiResponse($data, $code, $headers, $options);
}
* Get the underlying response instance.
* @return \ElfSundae\Laravel\Api\Http\ApiResponse
public function getResponse()
return $this->response;
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.