public function getPhpDataType() { if ($this->hasFieldType()) { return $this->getFieldType()->getPhpDataType(); } else { return 'string'; } }