MBHFramework/structures

View on GitHub
Mbh/Collection/Internal/LinkedTerminalNode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Mbh\Collection\Internal;

/**
 * MBHFramework
 *
 * @link      https://github.com/MBHFramework/mbh-framework
 * @copyright Copyright (c) 2017 Ulises Jeremias Cornejo Fandos
 * @license   https://github.com/MBHFramework/mbh-framework/blob/master/LICENSE (MIT License)
 */

use Mbh\Collection\Internal\Interfaces\LinkedNode;

/**
 * @internal
 */
class LinkedTerminalNode implements LinkedNode
{
    private $next;
    private $prev;

    /**
     * @return LinkedNode
     */
    public function prev()
    {
        return $this->prev;
    }

    /**
     * @return LinkedNode
     */
    public function next()
    {
        return $this->next;
    }

    public function setPrev(LinkedNode $prev)
    {
        $this->prev = $prev;
    }

    public function setNext(LinkedNode $next)
    {
        $this->next = $next;
    }
}