for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Resta\Client;
abstract class ClientAbstract
{
/**
* @var array $inputs
*/
protected $inputs = [];
* @var array $origin
protected $origin = [];
* get inputs
*
* @return array
protected function get()
return $this->inputs;
}
* get auto generators data
* @return mixed
protected function getAutoGenerators()
if(property_exists($this,'auto_generators')){
return $this->auto_generators;
return [];
* get auto_generators_dont_overwrite
protected function getAutoGeneratorsDontOverwrite()
if(property_exists($this,'auto_generators_dont_overwrite')){
return $this->auto_generators_dont_overwrite;
* get client objects
protected function getClientObjects()
return array_diff_key($this->getObjects(),['inputs'=>[]]);
* get generators data
protected function getGenerators()
if(property_exists($this,'generators')){
return $this->generators;
protected function getGeneratorsDontOverwrite()
if(property_exists($this,'generators_dont_overwrite')){
return $this->generators_dont_overwrite;
* get object vars
protected function getObjects()
return get_object_vars($this);
* get origin
protected function getOrigin()
return $this->origin;