[Form] Fixing the object versus normalized data PHPDoc on Field, which I believe was backwards.

This commit is contained in:
Ryan Weaver 2011-01-20 08:33:04 -06:00 committed by Fabien Potencier
parent d41b4ec109
commit cf1512dce8

View File

@ -303,17 +303,22 @@ class Field extends Configurable implements FieldInterface
}
/**
* Returns the normalized data of the field.
* Returns the data in the format needed for the underlying object.
*
* @return mixed When the field is not bound, the default data is returned.
* When the field is bound, the normalized bound data is
* returned if the field is valid, null otherwise.
* @return mixed
*/
public function getData()
{
return $this->data;
}
/**
* Returns the normalized data of the field.
*
* @return mixed When the field is not bound, the default data is returned.
* When the field is bound, the normalized bound data is
* returned if the field is valid, null otherwise.
*/
protected function getNormalizedData()
{
return $this->normalizedData;