Stack   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

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