Passed
Push — master ( ad1515...9a224a )
by Sebastian
01:48
created

Stack::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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\Stack\StackInterface;
14
use Seboettg\Collection\Stack\StackTrait;
15
16
/**
17
 * Class Stack
18
 * @package Seboettg\Collection
19
 * @author Sebastian Böttger <[email protected]>
20
 */
21
class Stack implements StackInterface
22
{
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
    public function __construct()
35
    {
36
        $this->array = [];
37
    }
38
}
39