Completed
Push — master ( 6033c5...af0fd1 )
by Julito
10:22
created

CQuizQuestionRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHotSpotImageUrl() 0 7 1
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Repository;
5
6
use Chamilo\CoreBundle\Repository\ResourceRepository;
7
use Chamilo\CourseBundle\Entity\CQuizQuestion;
8
9
/**
10
 * Class CQuizQuestionRepository.
11
 */
12
final class CQuizQuestionRepository extends ResourceRepository
13
{
14
    public function getHotSpotImageUrl(CQuizQuestion $resource): string
15
    {
16
        $params = [
17
            'mode' => 'show',
18
            'filter' => 'hotspot_question',
19
        ];
20
        return $this->getResourceFileUrl($resource, $params);
21
    }
22
}
23