Queue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 13
ccs 4
cts 5
cp 0.8
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A next() 0 7 2
1
<?php
2
3
namespace Bavix\Lexer;
4
5
class Queue extends \Bavix\Foundation\Arrays\Queue
6
{
7
8
    /**
9
     * @return mixed|null
10
     */
11 24
    public function next()
12
    {
13 24
        $self = clone $this;
14
15 24
        return $self->isEmpty() ?
16
            null :
17 24
            $self->pop();
18
    }
19
20
}
21