public getPHPType ( ) : boolean | ||
return | boolean | derived PHP primitive type from the column db type. |
public function getPHPType()
{
$dbtype = strtolower($this->getDbType());
foreach (self::$types as $type => $dbtypes) {
if (in_array($dbtype, $dbtypes)) {
return $type;
}
}
return 'string';
}