/** * @param string $method * @param array $arguments * @return mixed * @throws \RuntimeException */ public function __call($method, $arguments) { if ($this->reflectionClass->hasMethod($method)) { return $this->client->command(['Pure\\Command\\StorageCommand', $this->class, $this->name, $method, $arguments]); } else { throw new \RuntimeException("Class `{$this->class}` does not have method `{$method}`."); } }