BaseRegistry::isTraversable()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php namespace Nwidart\LaravelBroadway\Registries;
2
3
abstract class BaseRegistry
4
{
5
    /**
6
     * Check if the given argument is traversable
7
     * @param $argument
8
     * @return bool
9
     */
10
    protected function isTraversable($argument)
11
    {
12
        return is_array($argument) || $argument instanceof \Traversable;
13
    }
14
}
15