public function withClass($extensionClass) { // var_dump('Extending ' . $this->name . ' with ' . $extensionClass); // var_dump('We have ' . count($this->mixins) . ' mixins before this one'); constraint_mustBeString($extensionClass); constraint_mustBeMixinClass($extensionClass); $this->mixins[$extensionClass] = $extensionClass; $this->updateMethodsAndProperties(); MF_Events_Manager::triggerEvent('classExtended', null, array('class' => $this->name, 'extension' => $extensionClass)); // var_dump('We now have ' . count($this->mixins) . ' mixins after this one'); }
public static function destroy() { self::$listeners = array(); }