Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Smith orukusaki

  • SensioLabs UK
  • Sheffield, UK
View GitHub Profile
View TypedList.php
<?php
function loader($class) {
if (strpos($class, 'List') !== false) {
eval("class $class extends TypedList {}");
}
}
spl_autoload_register('loader');
abstract class TypedList extends ArrayObject
You can’t perform that action at this time.