private function buildArray($route, $data = null)
    {
        $key  = array_pop($route);
        $data = [$key => $data];
        if (count($route) == 0) {
            return $data;
        }
        return $this->buildArray($route, $data);
    }
private function buildArray($route, $data = null)
    {
        $key  = array_pop($route);
        $data = [$key => $data];
        if (count($route) == 0) {
            return $data;
        }
        return $this->buildArray($route, $data);
    }
private function buildArray ( $ route , $ data = null ) { $ key = array_pop ( $ route ) ; $ data = [ $ key => $ data ] ; if ( count ( $ route ) == 0 ) { return $ data ; } return $ this -> buildArray ( $ route , $ data ) ; }
Build the array structure for value.

@param $route
@param null $data
@return array|null
Build the array structure for value .