Total Complexity | 12 |
Total Lines | 104 |
Duplicated Lines | 0 % |
Coverage | 36% |
Changes | 0 |
1 | <?php |
||
9 | final class UpdateResultSet extends \EmptyIterator implements ResultSetInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var integer |
||
|
|||
13 | */ |
||
14 | private $count; |
||
15 | |||
16 | |||
17 | /** |
||
18 | * UpdateResultSet constructor. |
||
19 | * |
||
20 | * @param int $count |
||
21 | */ |
||
22 | 457 | public function __construct($count) |
|
25 | 457 | } |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function fetchMode($mode, $options = null) |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function asAssociative(): ResultSetInterface |
||
39 | { |
||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function asList(): ResultSetInterface |
||
47 | { |
||
48 | return $this; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function asObject(): ResultSetInterface |
||
55 | { |
||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function asClass(string $className, array $constructorArguments = []): ResultSetInterface |
||
63 | { |
||
64 | return $this; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function asColumn(int $column = 0): ResultSetInterface |
||
71 | { |
||
72 | return $this; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 1 | public function all() |
|
79 | { |
||
80 | 1 | return []; |
|
81 | } |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | 457 | public function count() |
|
87 | { |
||
88 | 457 | return $this->count; |
|
89 | } |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function isRead(): bool |
||
95 | { |
||
96 | return false; |
||
97 | } |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function isWrite(): bool |
||
103 | { |
||
104 | return true; |
||
105 | } |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function hasWrite(): bool |
||
113 | } |
||
114 | } |