Passed
Pull Request — 1.11.x (#4900)
by Angel Fernando Quiroz
08:52
created

LogRepository::countByActionInExe()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\PluginBundle\ExerciseFocused\Repository;
6
7
use Chamilo\CoreBundle\Entity\TrackEExercises;
8
use Doctrine\ORM\EntityRepository;
9
10
class LogRepository extends EntityRepository
11
{
12
    public function countByActionInExe(TrackEExercises $exe, string $action): int
13
    {
14
        return $this->count([
15
            'exe' => $exe,
16
            'action' => $action,
17
        ]);
18
    }
19
}
20