setColumns($column); $this->name = $name; } /** * @return array */ public function getExpressionData() { $colCount = count($this->columns); $values = array(); $values[] = ($this->name) ? $this->name : ''; $newSpecTypes = array(self::TYPE_IDENTIFIER); $newSpecParts = array(); for ($i = 0; $i < $colCount; $i++) { $newSpecParts[] = '%s'; $newSpecTypes[] = self::TYPE_IDENTIFIER; } $newSpec = str_replace('...', implode(', ', $newSpecParts), $this->specification); return array(array( $newSpec, array_merge($values, $this->columns), $newSpecTypes, )); } }