Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function render(Formatter $formatter, array $schema, string $role): ?string |
||
14 | { |
||
15 | $database = $schema[SchemaInterface::DATABASE] ?? '<undefined databse>'; |
||
16 | $table = $schema[SchemaInterface::TABLE] ?? '<undefined table>'; |
||
17 | |||
18 | return \sprintf( |
||
19 | '%s :: %s.%s', |
||
20 | $formatter->entity("[{$role}]"), |
||
21 | $formatter->column($database), |
||
22 | $formatter->column($table) |
||
23 | ); |
||
26 |