Completed
Push — master ( df80f0...840f28 )
by Rafal
11s
created

NoWin::getScore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
4
namespace App\GameBetting\Business\GamePoints\Score;
5
6
7
use App\GameBetting\Business\GamePoints\Config;
8
use App\GameBetting\Persistence\DataProvider\Result;
9
10
class NoWin implements ScoreInterface
11
{
12
    /**
13
     * @param Result $result
14
     * @return bool
15
     */
16
    public function check(Result $result): bool
17
    {
18
        return true;
19
    }
20
21
    /**
22
     * @return int
23
     */
24
    public function getScore(): int
25
    {
26
        return Config::NO_WIN_TEAM;
27
    }
28
29
30
}