public function getCurrentToAttr($level)
    {
        $lookupNames = StringHelper::split(BaseLookup::$lookupPattern, $this->prefetchTo);
        $toAttr = $lookupNames[$level];
        $hasAsAttr = $this->toAttr && $level === count($lookupNames) - 1;
        return [$toAttr, $hasAsAttr];
    }
public function getCurrentToAttr($level)
    {
        $lookupNames = StringHelper::split(BaseLookup::$lookupPattern, $this->prefetchTo);
        $toAttr = $lookupNames[$level];
        $hasAsAttr = $this->toAttr && $level === count($lookupNames) - 1;
        return [$toAttr, $hasAsAttr];
    }
public function getCurrentToAttr ( $ level ) { $ lookupNames = StringHelper :: split ( BaseLookup :: $ lookupPattern , $ this -> prefetchTo ) ; $ toAttr = $ lookupNames [ $ level ] ; $ hasAsAttr = $ this -> toAttr && $ level === count ( $ lookupNames ) - 1 ; return [ $ toAttr , $ hasAsAttr ] ; }
This is the attribute to which the values will be placed.

@param $level

@return array
This is the attribute to which the values will be placed .