public function getPHPType()
{
$dbtype = trim(str_replace(array('unsigned', 'zerofill'), array('', ''), strtolower($this->getDbType())));
if ($dbtype === 'tinyint' && $this->getColumnSize() === 1) {
return 'boolean';
}
foreach (self::$types as $type => $dbtypes) {
if (in_array($dbtype, $dbtypes)) {
return $type;
}
}
return 'string';
}