for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xervice\Session;
use Xervice\Core\Client\AbstractClient;
/**
* @method \Xervice\Session\SessionFactory getFactory()
*/
class SessionClient extends AbstractClient
{
* @param $name
* @param $arguments
*
* @return mixed
* @throws \InvalidArgumentException
* @throws \RuntimeException
public function __call($name, $arguments)
return $this->isSessionMethodExist($name) ? $this->callSessionMethod($name, $arguments) : null;
}
* @return bool
private function isSessionMethodExist($name): bool
return \method_exists($this->getFactory()->getSession(), $name);
private function callSessionMethod($name, $arguments)
return \call_user_func_array(
[
$this->getFactory()->getSession(),
$name
],
$arguments
);