Mojopollo\Schema\MakeMigrationJson::parseProperty PHP Метод

parseProperty() публичный Метод

Parses the property without the parameters in this method, "string" and "string(50)" should both return as "string"
public parseProperty ( string $type ) : string
$type string Example: "string", "string(50)", etc
Результат 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;
    }