formField; } /** * @param string $formField * @return $this */ public function setFormField( $formField ) { $this->formField = $formField; return $this; } /** * @return string|null */ public function getOtField() { return $this->otField; } /** * @param string|null $otField * @return $this */ public function setOtField( $otField ) { $this->otField = $otField; return $this; } /** * Create a MatchDTO from an associative array. * * @param array $data * @return static */ public static function fromArray( $data ) { $instance = new self(); $instance->formField = $data['formField']; $instance->otField = isset( $data['otField'] ) ? $data['otField'] : null; return $instance; } /** * Convert the DTO to an associative array. * * @return array */ public function toArray() { return array( 'formField' => $this->formField, 'otField' => $this->otField, ); } } }