Completed
Pull Request — master (#40)
by Matthew
17:20
created

ProgressCallbackTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A updateProgress() 0 6 2
1
<?php
2
3
namespace Dtc\QueueBundle\Doctrine;
4
5
trait ProgressCallbackTrait
6
{
7
    protected function updateProgress($callback, $count, $totalCount = null)
8
    {
9
        if (is_callable($callback)) {
10
            call_user_func($callback, $count, $totalCount);
11
        }
12
    }
13
}
14