infw/range

Range Object for In Framework

0.0.1.6 2017-05-20 12:25 UTC

This package is auto-updated.

Last update: 2024-11-18 09:17:00 UTC


README

Scrutinizer Code Quality Code Coverage Build Status

Range is a value object used as a dependency in various packages at "In Framework".

It can be very useful for different tasks like validations or as part of more complex objects.

Installation:

composer require infw/range

Usage:

<?php

use InFw\Range\BaseRange as Range;

$min = 25;
$max = 1000;

$range = new Range($min, $max);

$range->getMin();
$range->getMax();