We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 12 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class DatabaseRecord { |
||
6 | |||
7 | /** |
||
8 | * @param array $dbRecord A record from a DatabaseResult. |
||
9 | */ |
||
10 | public function __construct( |
||
11 | private array $dbRecord |
||
12 | ) {} |
||
13 | |||
14 | public function hasField(string $name) : bool { |
||
15 | return isset($this->dbRecord[$name]); |
||
16 | } |
||
17 | |||
18 | public function getField(string $name) : ?string { |
||
19 | return $this->dbRecord[$name]; |
||
20 | } |
||
21 | |||
22 | public function getBoolean(string $name) : bool { |
||
26 | }; |
||
27 | } |
||
28 | |||
29 | public function getInt(string $name) : int { |
||
31 | } |
||
32 | |||
33 | public function getFloat(string $name) : float { |
||
34 | return (float)$this->dbRecord[$name]; |
||
35 | } |
||
36 | |||
37 | public function getMicrotime(string $name) : string { |
||
41 | } |
||
42 | |||
43 | public function getObject(string $name, bool $compressed = false, bool $nullable = false) : mixed { |
||
52 | } |
||
53 | |||
54 | public function getRow() : array { |
||
56 | } |
||
57 | |||
59 |