public static function exec($Operation) { $X = new Calc(); $X->setOperation($Operation); $X->run(); return $X->getResult(); }