for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jaxon\Container\Traits;
use Jaxon\Jaxon;
use Jaxon\Response\Response;
use Jaxon\Response\Manager as ResponseManager;
trait ResponseTrait
{
/**
* Register the values into the container
*
* @return void
*/
private function registerResponses()
/*
* Core library objects
// Global Response
$this->set(Response::class, function() {
set()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
set(Response::class, function() {
return new Response();
});
// Response Manager
$this->set(ResponseManager::class, function($c) {
return new ResponseManager($c->g(Jaxon::class));
}
* Get the response manager
* @return ResponseManager
public function getResponseManager()
return $this->g(ResponseManager::class);
g()
return $this->/** @scrutinizer ignore-call */ g(ResponseManager::class);
* Get the global Response object
* @return Response
public function getResponse()
return $this->g(Response::class);
* Create a new Jaxon response object
public function newResponse()