Passed
Push — 109 ( d49bc8...e353ae )
by Max
02:35
created

Repeat   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 42
rs 10
wmc 2
1
<?php
2
3
namespace MaxGoryunov\SavingIterator\Fakes;
4
5
/**
6
 * Some repeating process.
7
 * @template T result type
8
 */
9
interface Repeat
10
{
11
12
    /**
13
     * Returns an array of results.
14
     * Number of values in the result array is the same as $count.
15
     *
16
     * @param int $count
17
     * @phpstan-return T[]
18
     * @return mixed[]
19
     */
20
    public function times(int $count): array;
21
}
22