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

CQuizQuestionRepository::getHotSpotImageUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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