public function __call($method, $args)
{
if (method_exists(NestableService::class, $method)) {
$args = count($args) > 1 ? $args : current($args);
static::saveParameter($method, $args);
return $this;
}
$parentResult = parent::__call($method, $args);
if ($parentResult instanceof Builder) {
static::$_instance = $parentResult;
return $this;
}
return $parentResult;
}