<?php class Foo { var $modeMapping = array( 'bar' => 'Exception' ); public static function testing() { if (isset( self::$modeMapping[$mode] ) ) { return new self::$modeMapping[$mode]( ); } } }
You have javascript disabled. You will not be able to edit any code.