for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fesor\RequestObject;
class RequestObject
{
private $payload;
public function setPayload(array $payload = [])
$this->payload = $payload;
}
/**
* @inheritdoc
*/
public function rules()
return null;
public function validationGroup(array $payload)
$payload
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
* @param string $name
* @param mixed|null $default
* @return mixed
public function get($name, $default = null)
return $this->has($name) ?
$this->payload[$name] : $default;
* @return bool
public function has($name)
return array_key_exists($name, $this->payload);
* @return array
public function all()
return $this->payload;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.