Beispiel #1
0
 /**
  * Extend $extendable with new methods
  * @param extendable $extendable
  */
 public function setUpMethods($extendable)
 {
     $extendableMethods = $extendable->___get('___methods');
     foreach ($this->___methods as $method) {
         $extendableMethods[$method] = array($this, $method);
     }
     $extendable->___set('___methods', $extendableMethods);
 }
Beispiel #2
0
 /**
  * 
  * @param extendable $extendable
  */
 public function setUp($extendable)
 {
     $extendable->___set('x', $a = 1);
 }