LessQL\Result::via PHP Метод

via() публичный Метод

Create result with new reference key
public via ( string $key ) : Result
$key string
Результат Result
    function via($key)
    {
        if (!$this->parent_) {
            throw new \LogicException('Cannot set reference key on basic Result');
        }
        $clone = clone $this;
        if ($clone->single) {
            $clone->parentKey = $key;
        } else {
            $clone->key = $key;
        }
        return $clone;
    }