public function getPHPType() { $dbtype = strtolower($this->getDbType()); foreach (self::$types as $type => $dbtypes) { if (in_array($dbtype, $dbtypes)) { return $type; } } return 'string'; }