merged branch jonathaningram/patch-4 (PR #3144)
Commits
-------
076f571
Added missing interface method and updated phpDoc param
Discussion
----------
[Form] add missing interface method
Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Quite simply, the interface misses `get`, but has `add`, `has` and `remove`.
---------------------------------------------------------------------------
by kriswallsmith at 2012-01-18T06:07:10Z
👍
This commit is contained in:
commit
f842739d58
@ -46,10 +46,19 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
|
||||
*/
|
||||
function add(FormInterface $child);
|
||||
|
||||
/**
|
||||
* Returns the child with the given name.
|
||||
*
|
||||
* @param string $name The name of the child
|
||||
*
|
||||
* @return FormInterface The child form
|
||||
*/
|
||||
function get($name);
|
||||
|
||||
/**
|
||||
* Returns whether a child with the given name exists.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $name The name of the child
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
|
Reference in New Issue
Block a user