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

NoWin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getScore() 0 3 1
A check() 0 3 1
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
}