`values()` function did not return the object, this breaking the fluent interface.

Added a `return $this` so that usage of this node works as expected:
    ->enumNode('foo')->values(array('a', 'b'))->end()
This commit is contained in:
Rafael Dohms 2012-07-10 17:04:38 +03:00 committed by Rafael Dohms
parent 6782c78b95
commit 1b08cd1058
1 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ class EnumNodeDefinition extends ScalarNodeDefinition
}
$this->values = $values;
return $this;
}
/**
@ -38,4 +40,4 @@ class EnumNodeDefinition extends ScalarNodeDefinition
return new EnumNode($this->name, $this->parent, $this->values);
}
}
}