/** * Processes MIN VALUE and NO MINVALUE instructions. * * @param sequence sequence * @param command command * * @return command without MIN VALUE instructions */ private static function processMinValue(&$node_sequence, $command) { $line = $command; if (preg_match(self::PATTERN_NO_MINVALUE, $line, $matches) > 0) { dbx::unset_attribute($node_sequence, 'min'); $line = str_ireplace("NO MINVALUE", '', $line); } else { if (preg_match(self::PATTERN_MINVALUE, $line, $matches) > 0) { dbx::set_attribute($node_sequence, 'min', trim($matches[1])); $line = str_ireplace("NO MAXVALUE", '', $line); $line = preg_replace(self::PATTERN_MINVALUE, '', $line); } } return $line; }