public function addFieldDefinition($key, $data) { $this->fieldDefinitions[$key] = $data; return $this; }