Advertisement
fruffl

super abstract classes

Oct 29th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.27 KB | None | 0 0
  1. The ILLI::Core::Std::Internal::ICollectType is a super abstract to create meta abstracts.
  2. Usage
  3. Create the meta abstract for assoc arrays
  4. <?PHP
  5. Create the abstract assoc array
  6. <?PHP
  7.         namespace ILLI\Core\Std;
  8.         interface IAssoc extends ILLI\Core\Std\Internal\ICollectTypeP2
  9.         {
  10.         }
  11.         abstract class DefaultAssoc implements IAssoc, IObject, IGeneric
  12.         {
  13.                 use __import_IGeneric;
  14.                 use __import_IObject;
  15.                 use __import_IAssoc
  16.                 {
  17.                         __import_IAssoc::equals         insteadOf __import_IObject;
  18.                         __import_IAssoc::toArray        insteadOf __import_IObject;
  19.                 }
  20.         }
  21. Create the generic array
  22. <?PHP
  23.         namespace ILLI\Core\Std;
  24.         use ILLI\Core\Std\DefaultAssoc;
  25.         class GenericArray extends DefaultAssoc
  26.         {
  27.                 use __import_IntegerT1;
  28.                 use __import_MixedT2;
  29.                 use __import_Flex;
  30.                 function __construct($__mode = 0b00)
  31.                 {
  32.                         $this->Core_Std_IStd___trait_IAssoc_setMode($__mode);
  33.                         $this->Core_Std_IStd_IAssoc_ICollectLimiter___trait_Flex___construct();
  34.                 }
  35.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement