- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
- Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/MKtPM on line 6
Process exited with code 255.
<?php
class BaseModel {
static protected $_table = get_called_class();
static public function getTableName() {
return self::$_table;
}
}
class Source extends BaseModel {
}
var_dump(Source::getTableName());