setParams($params); echo ''; echo '
'; $options = ''; foreach (self::$paramsList as $paramName){ if(isset($this->params[$paramName])) $options .= $paramName.' : '.$this->params[$paramName].','; } echo ''; } private function setParams($params){ $this->params = $params; } public static function start($params){ $clockAdvanced = new clockAdvanced($params); } }