Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class MySQLUserFactory extends AbstractUserFactory |
||
13 | { |
||
14 | 7 | public function asCreate(): string |
|
15 | { |
||
16 | 7 | return \sprintf("CREATE USER '%s'@'%s' IDENTIFIED BY '%s';", $this->name, $this->host, $this->password); |
|
17 | } |
||
18 | |||
19 | 5 | public function asDrop(): string |
|
20 | { |
||
21 | 5 | return \sprintf("DROP USER '%s'@'%s';", $this->name, $this->host); |
|
22 | } |
||
23 | |||
24 | 28 | public function asPrivileges(): string |
|
40 | } |
||
41 | } |
||
42 |