Passed
Push — master ( 9a224a...3e0fbd )
by Sebastian
02:02
created

Queue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/*
3
 * Copyright (C) 2018 Sebastian Böttger <[email protected]>
4
 * You may use, distribute and modify this code under the
5
 * terms of the MIT license.
6
 *
7
 * You should have received a copy of the MIT license with
8
 * this file. If not, please visit: https://opensource.org/licenses/mit-license.php
9
 */
10
11
namespace Seboettg\Collection;
12
13
use Seboettg\Collection\Queue\QueueInterface;
14
use Seboettg\Collection\Queue\QueueTrait;
15
16
/**
17
 * Class Queue
18
 * @package Seboettg\Collection
19
 * @author Sebastian Böttger <[email protected]>
20
 */
21
class Queue implements QueueInterface
22
{
23
    use QueueTrait;
24
25
    /**
26
     * @var array
27
     */
28
    protected $array;
0 ignored issues
show
Coding Style introduced by
Protected member variable "array" must contain a leading underscore
Loading history...
29
30
    /**
31
     * Queue constructor.
32
     */
33 3
    public function __construct()
34
    {
35 3
        $this->array = [];
36 3
    }
37
}
38