| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class MySQL |
||
| 8 | { |
||
| 9 | public function __construct(protected $table){} |
||
| 10 | |||
| 11 | public function isTable() |
||
| 12 | { |
||
| 13 | $query = Rudra::get("DSN")->query(" |
||
| 14 | SHOW TABLES LIKE '{$this->table}'; |
||
| 15 | "); |
||
| 16 | |||
| 17 | return $query->fetchColumn(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function writeLog(string $name): void |
||
| 28 | } |
||
| 29 | } |
||
| 30 |