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

ProgressCallbackTrait::updateProgress()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 3
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