<?php

namespace CouponsPlus\App\Coupon\Tree;

use CouponsPlus\App\Coupon\Tree\Abilities;
use CouponsPlus\App\Coupon\Tree\Abilities\Branch;

class Node implements Abilities\Node
{
    private $branch;
    private $testable;

    public function __construct(
        Branch $branch,
        TestableGroup $testable
    ) {

        $this->branch = $branch;
        $this->testable = $testable;
    }
    
    public function getBranch(): Branch
    {
        return $this->branch;       
    } 

    public function getTestable(): TestableGroup
    {
        return $this->testable;
    } 
}