Completed
Push — master ( aac319...996365 )
by Rafal
11s
created

GameRatingFacade   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getPoints() 0 3 1
1
<?php
2
3
4
namespace App\GameRating\Business;
5
6
7
use App\GameRating\Business\GamePoints\PointsInterface;
8
use App\GameRating\Persistence\DataProvider\Result;
9
10
class GameRatingFacade implements GameRatingFacadeInterface
11
{
12
13
    /**
14
     * @var PointsInterface
15
     */
16
    private $points;
17
18
    /**
19
     * @param PointsInterface $points
20
     */
21
    public function __construct(PointsInterface $points)
22
    {
23
        $this->points = $points;
24
    }
25
26
    /**
27
     * @param Result $result
28
     * @return int
29
     */
30
    public function getPoints(Result $result)
31
    {
32
        return $this->points->get($result);
33
    }
34
}