2017 © Pedro Peláez
 

library typed-array

A simple base class for strongly typed arrays

image

rquadling/typed-array

A simple base class for strongly typed arrays

  • Wednesday, October 5, 2016
  • by RQuadling
  • Repository
  • 2 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Scrutinizer Code Quality Scrutinizer Coverage Scrutinizer Build Status Travid Build Status Latest Stable Version Packagist, (*1)

Richard Quadling's TypedArray

A \RQuadling\TypedArray\TypedArray allows you to have an array of non-scalar types enforced to a single type., (*2)

<?php
class ItemCollection extends \RQuadling\TypedArray\TypedArray
{
    const ARRAY_TYPE = 'Item';
}

Now you can call $myItems = new ItemCollection;. You can supply an array of Item, or another collection of Items., (*3)

If you want to copy a collection, you will need to clone it. When you do, all items are cloned., (*4)

If you want to add functionality to your collections, then create an abstract subclass with that functionality., (*5)

If you want to see a working example of that, take a look at example/example.php., (*6)

The Versions

05/10 2016

dev-master

9999999-dev

A simple base class for strongly typed arrays

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

by Richard Quadling

15/12 2015

1.0.3

1.0.3.0

A simple base class for strongly typed arrays

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

by Richard Quadling

15/12 2015

1.0.2

1.0.2.0

A simple base class for strongly typed arrays

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

by Richard Quadling

15/12 2015

1.0.1

1.0.1.0

A simple base class for strongly typed arrays

  Sources   Download

The Requires

  • php >=5.4

 

The Development Requires

by Richard Quadling

14/12 2015

1.0.0

1.0.0.0

A simple base class for typed arrays

  Sources   Download

The Development Requires

by Richard Quadling