Model::_build_foreign_key_name PHP Метод

_build_foreign_key_name() защищенный статический Метод

Build a foreign key based on a table name. If the first argument (the specified foreign key column name) is null, returns the second argument (the name of the table) with the default foreign key column suffix appended.
protected static _build_foreign_key_name ( string $specified_foreign_key_name, string $table_name ) : string
$specified_foreign_key_name string
$table_name string
Результат string
    protected static function _build_foreign_key_name($specified_foreign_key_name, $table_name)
    {
        if (!is_null($specified_foreign_key_name)) {
            return $specified_foreign_key_name;
        }
        return $table_name . self::DEFAULT_FOREIGN_KEY_SUFFIX;
    }