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

GameRatingFacade::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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