AbstractRound::play()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 1
nc 1
1
<?php
2
3
namespace GameDomain\Round;
4
5
use GameDomain\Rule\AbstractRulesSet;
6
7
/**
8
 * Round
9
 */
10
abstract class AbstractRound
11
{
12
    /** @var \LimitIterator */
13
    protected $players;
14
15
    /**
16
     * @param \LimitIterator $players
17
     */
18
    final public function __construct(\LimitIterator $players)
19
    {
20
        $this->players = $players;
21
    }
22
23
    /**
24
     * @param \GameDomain\Rule\AbstractRulesSet $gameRules
25
     *
26
     * @return \GameDomain\Round\Step\StepResultCollection
27
     */
28
    abstract public function play(AbstractRulesSet $gameRules);
29
}
30