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

Repeat::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 0
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 17
rs 10
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