Exemplo n.º 1
0
 public function save()
 {
     $arguments = array();
     foreach ($this->getMapping() as $key => $value) {
         $arguments[$key] = $this->{$value};
     }
     if (!empty($arguments) && $this->getClient()) {
         ResponseValidator::validate('session-set', $this->getClient()->call('session-set', $arguments));
     }
 }
Exemplo n.º 2
0
 /**
  * @param string $method
  * @param array  $arguments
  */
 protected function call($method, $arguments)
 {
     if (!($client = $this->getClient())) {
         return;
     }
     ResponseValidator::validate($method, $client->call($method, $arguments));
 }
Exemplo n.º 3
0
 /**
  * @param string $method
  * @param array  $arguments
  */
 protected function call($method, $arguments)
 {
     if ($this->client) {
         ResponseValidator::validate($method, $this->client->call($method, $arguments));
     }
 }