palicao/phpRebloom

View on GitHub
src/Pair.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
declare(strict_types=1);

namespace Palicao\PhpRebloom;

final class Pair
{
    /** @var string */
    private $item;

    /** @var int */
    private $value;

    public function __construct(string $item, int $value)
    {
        $this->item = $item;
        $this->value = $value;
    }

    public function getItem(): string
    {
        return $this->item;
    }

    public function getValue(): int
    {
        return $this->value;
    }
}