public parseProperty ( string $type ) : string | ||
$type | string | Example: "string", "string(50)", etc |
return | string | the parsed column type name |
public function parseProperty($type)
{
// Remove any parameters to this column type
$type = explode('(', $type);
$type = trim($type[0]);
// Return column type
return $type;
}