2017 © Pedro Peláez
 

library temporal-collections

Temporal collections library

image

thewilkybarkid/temporal-collections

Temporal collections library

  • Tuesday, April 1, 2014
  • by thewilkybarkid
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Temporal collections

Build Status, (*1)

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

Installation

Use Composer to add the library to your dependencies:, (*3)

$ 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'

The Versions

01/04 2014

dev-master

9999999-dev https://github.com/thewilkybarkid/temporal-collections

Temporal collections library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Chris Wilkinson