blob: 29f566c29434c3f7ffffd4139449f923fd1682de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
namespace App\Support;
interface ConnectsToDatabase
{
/**
* @param array<string,mixed> $row
*/
public static function fromDatabase(array $row): self;
public static function fetch(): ?self;
/**
* @return array<self>
*/
public static function fetchAll(): array;
public function insert(): bool;
public function update(): bool;
public function delete(): bool;
}
|