Example #1
0
 /**
  * This method returns the data in the model's format and will handle the transformation
  * if necessary.
  *
  * @access public
  * @return \Unicity\MappingService\Data\Field               the data in the model's format
  */
 public function toModelFormat()
 {
     $field = new MappingService\Data\Field(MappingService\Data\FormatType::model(), $this->field);
     $field->setInfo($this->field->getInfo());
     return $field;
 }