private function addMiddle($middle)
    {
        if (is_array($middle)) {
            foreach ($middle as $mid) {
                $this->middles[] = $mid;
            }
        } else {
            $this->middles[] = $middle;
        }
    }