public static function setEditorList($editorList) { if (!is_array($editorList)) { throw new \Exception('$editorList must be an array.'); } self::$editorList = $editorList; }