Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

thewilkybarkid/temporal-collections

Repository files navigation

Temporal collections

Build Status

This library provides temporal collection classes, which can be used to easily implement temporal properties.

Installation

Use Composer to add the library to your dependencies:

$ php composer.phar require thewilkybarkid/temporal-collections:~1.0@dev

Usage

$collection = new \TheWilkyBarKid\TemporalCollections\OpenEndedTemporalCollection();

$collection->get('1950-01-01'); // returns null
$collection->get('1975-01-01'); // returns null
$collection->get('2000-01-01'); // returns null

$collection->set('foo', '1975-01-01', '1999-12-31');

$collection->get('1950-01-01'); // returns null
$collection->get('1975-01-01'); // returns 'foo'
$collection->get('2000-01-01'); // returns null

$collection->set('bar', '1990-01-01', null);

$collection->get('1950-01-01'); // returns null
$collection->get('1975-01-01'); // returns 'foo'
$collection->get('2000-01-01'); // returns 'bar'

About

[NOT MAINTAINED] PHP temporal collections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages