PriorityNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php namespace Mbh\Collection\Internal;
2
3
/**
4
 * MBHFramework
5
 *
6
 * @link      https://github.com/MBHFramework/mbh-framework
7
 * @copyright Copyright (c) 2017 Ulises Jeremias Cornejo Fandos
8
 * @license   https://github.com/MBHFramework/mbh-framework/blob/master/LICENSE (MIT License)
9
 */
10
11
/**
12
 * @internal
13
 */
14
final class PriorityNode
15
{
16
    /**
17
     * @var mixed
18
     */
19
    public $value;
20
21
    /**
22
     * @var int
23
     */
24
    public $priority;
25
26
    /**
27
     * @var int
28
     */
29
    public $stamp;
30
31
    /**
32
     * @param mixed $value
33
     * @param int   $priority
34
     * @param int   $stamp
35
     */
36
    public function __construct($value, int $priority, int $stamp)
37
    {
38
        $this->value    = $value;
39
        $this->priority = $priority;
40
        $this->stamp    = $stamp;
41
    }
42
}
43