1 | <?php |
||
7 | class PagePropsIdDatabase implements IdDatabase { |
||
8 | |||
9 | private const FAKE_PAGE_ID = -42; |
||
10 | |||
11 | /** |
||
12 | * @var IDatabase |
||
13 | */ |
||
14 | private $database; |
||
15 | |||
16 | 1 | public function getNewId( IDatabase $database, string $type ): int { |
|
25 | |||
26 | 1 | private function getId( string $type ): int { |
|
41 | |||
42 | 1 | private function storeId( string $type, int $id ): bool { |
|
56 | |||
57 | 1 | private function getInsertValues( string $idType, int $id ): array { |
|
62 | |||
63 | 1 | private function getWhere( string $idType ): array { |
|
69 | |||
70 | 1 | private function makePropertyName( string $idType ): string { |
|
73 | |||
74 | } |
||
75 |