LinkedTerminalNode   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 29
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A prev() 0 3 1
A setNext() 0 3 1
A setPrev() 0 3 1
A next() 0 3 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
use Mbh\Collection\Internal\Interfaces\LinkedNode;
12
13
/**
14
 * @internal
15
 */
16
class LinkedTerminalNode implements LinkedNode
17
{
18
    private $next;
19
    private $prev;
20
21
    /**
22
     * @return LinkedNode
23
     */
24
    public function prev()
25
    {
26
        return $this->prev;
27
    }
28
29
    /**
30
     * @return LinkedNode
31
     */
32
    public function next()
33
    {
34
        return $this->next;
35
    }
36
37
    public function setPrev(LinkedNode $prev)
38
    {
39
        $this->prev = $prev;
40
    }
41
42
    public function setNext(LinkedNode $next)
43
    {
44
        $this->next = $next;
45
    }
46
}
47