null, 'rule_id' => null, 'source_id' => null, 'source_expression' => null, 'destination_field' => null, 'priority' => null, 'filter_expression' => null, 'merge_policy' => null ); /** * Virtual property for source_column * * Internally we always use an expression. Form indirectly uses this * * Avoid complaints for method names with underscore: * @codingStandardsIgnoreStart * * @return self */ public function setSource_column($value) { // @codingStandardsIgnoreEnd $this->source_expression = '${' . $value . '}'; return $this; } public function sourceIsSingleColumn() { return $this->getSourceColumn() !== null; } public function getSourceColumn() { if (preg_match('/^\${([A-Za-z0-9_-]+)}$/', $this->source_expression, $m)) { return $m[1]; } return null; } }