FluentStructure::key PHP Method

key() private method

private key ( string | callback $key, string $table ) : string
$key string | callback
$table string
return string
    private function key($key, $table)
    {
        if (is_callable($key)) {
            return $key($table);
        }
        return sprintf($key, $table);
    }