Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 43... Línea 43...
43
    ) {
43
    ) {
44
        $this->client = $client;
44
        $this->client = $client;
45
        $this->operation = $operation;
45
        $this->operation = $operation;
46
        $this->args = $args;
46
        $this->args = $args;
47
        $this->config = $config;
47
        $this->config = $config;
-
 
48
        MetricsBuilder::appendMetricsCaptureMiddleware(
-
 
49
            $this->client->getHandlerList(),
-
 
50
            MetricsBuilder::PAGINATOR
-
 
51
        );
48
    }
52
    }
Línea 49... Línea 53...
49
 
53
 
50
    /**
54
    /**
51
     * Runs a paginator asynchronously and uses a callback to handle results.
55
     * Runs a paginator asynchronously and uses a callback to handle results.
Línea 105... Línea 109...
105
    public function current()
109
    public function current()
106
    {
110
    {
107
        return $this->valid() ? $this->result : false;
111
        return $this->valid() ? $this->result : false;
108
    }
112
    }
Línea -... Línea 113...
-
 
113
 
-
 
114
    /**
-
 
115
     * @return mixed
109
 
116
     */
110
    #[\ReturnTypeWillChange]
117
    #[\ReturnTypeWillChange]
111
    public function key()
118
    public function key()
112
    {
119
    {
113
        return $this->valid() ? $this->requestCount - 1 : null;
120
        return $this->valid() ? $this->requestCount - 1 : null;
Línea -... Línea 121...
-
 
121
    }
-
 
122
 
-
 
123
    /**
114
    }
124
     * @return void
115
 
125
     */
116
    #[\ReturnTypeWillChange]
126
    #[\ReturnTypeWillChange]
117
    public function next()
127
    public function next()
118
    {
128
    {
Línea -... Línea 129...
-
 
129
        $this->result = null;
-
 
130
    }
-
 
131
 
119
        $this->result = null;
132
    /**
120
    }
133
     * @return bool
121
 
134
     */
122
    #[\ReturnTypeWillChange]
135
    #[\ReturnTypeWillChange]
123
    public function valid()
136
    public function valid()
Línea 152... Línea 165...
152
        }
165
        }
Línea 153... Línea 166...
153
 
166
 
154
        return false;
167
        return false;
Línea -... Línea 168...
-
 
168
    }
-
 
169
 
-
 
170
    /**
155
    }
171
     * @return void
156
 
172
     */
157
    #[\ReturnTypeWillChange]
173
    #[\ReturnTypeWillChange]
158
    public function rewind()
174
    public function rewind()
159
    {
175
    {
160
        $this->requestCount = 0;
176
        $this->requestCount = 0;
161
        $this->nextToken = null;
177
        $this->nextToken = null;
Línea 162... Línea 178...
162
        $this->result = null;
178
        $this->result = null;
163
    }
179
    }
164
 
180
 
165
    private function createNextCommand(array $args, array $nextToken = null)
181
    private function createNextCommand(array $args, ?array $nextToken = null)
Línea 166... Línea 182...
166
    {
182
    {