@@ -68,6 +68,7 @@ public function __construct() {
6868 'database-connections ' => new Json (),
6969 ]);
7070 $ this ->json ->setIsFormatted (true );
71+ $ this ->json ->setPropsStyle ('none ' );
7172 }
7273 /**
7374 * Adds application environment variable to the configuration.
@@ -313,7 +314,15 @@ public function setAppVersion(string $vNum, string $vType, string $releaseDate)
313314 public function setBaseURL (string $ url ) {
314315
315316 }
316-
317+ /**
318+ * Sets or update default description of the application that will be used
319+ * by web pages.
320+ *
321+ * @param string $description The default description.
322+ *
323+ * @param string $langCode The code of the language at which the description
324+ * will be updated for.
325+ */
317326 public function setDescription (string $ description , string $ langCode ) {
318327 $ code = $ this ->isValidLangCode ($ langCode );
319328
@@ -324,12 +333,27 @@ public function setDescription(string $description, string $langCode) {
324333 $ appNamesJson ->add ($ code , $ description );
325334 $ this ->writeJson ();
326335 }
327-
336+ /**
337+ * Sets the home page of the application.
338+ *
339+ *
340+ * @param string $url The URL of the home page of the website. For example,
341+ * This page is served when the user visits the domain without specifying a path.
342+ */
328343 public function setHomePage (string $ url ) {
329344 $ this ->json ->add ('home-page ' , $ url );
330345 $ this ->writeJson ();
331346 }
332-
347+ /**
348+ * Update application version information.
349+ *
350+ * @param string $vNum Version number such as 1.0.0.
351+ *
352+ * @param string $vType Version type such as 'Beta', 'Alpha' or 'RC'.
353+ *
354+ * @param string $releaseDate The date at which the version was released on.
355+ *
356+ */
333357 public function setPrimaryLanguage (string $ langCode ) {
334358 $ code = $ this ->isValidLangCode ($ langCode );
335359
@@ -339,22 +363,47 @@ public function setPrimaryLanguage(string $langCode) {
339363 $ this ->json ->add ('primary-lang ' , $ code );
340364 $ this ->writeJson ();
341365 }
342-
366+ /**
367+ * Updates the password which is used to protect tasks from unauthorized
368+ * execution.
369+ *
370+ * @param string $newPass The new password. Note that provided value
371+ * must be hashed using SHA256 algorithm.
372+ *
373+ */
343374 public function setSchedulerPassword (string $ newPass ) {
344375 $ this ->json ->add ('scheduler-password ' , $ newPass );
345376 $ this ->writeJson ();
346377 }
347-
378+ /**
379+ * Sets the default theme which will be used to style web pages.
380+ *
381+ * @param string $theme The name of the theme that will be used to style
382+ * website UI. This can also be class name of the theme.
383+ */
348384 public function setTheme (string $ theme ) {
349385 $ this ->json ->add ('theme ' , $ theme );
350386 $ this ->writeJson ();
351387 }
352-
388+ /**
389+ * Sets the string which is used to separate application name from page name.
390+ *
391+ * @param string $separator A character or a string that is used
392+ * to separate application name from web page title. Two common
393+ * values are '-' and '|'.
394+ */
353395 public function setTitleSeparator (string $ separator ) {
354396 $ this ->json ->add ('name-separator ' , $ separator );
355397 $ this ->writeJson ();
356398 }
357-
399+ /**
400+ * Returns an array that holds different names for the web application
401+ * on different languages.
402+ *
403+ * @return array The indices of the array are language codes such as 'AR' and
404+ * the value of the index is the name.
405+ *
406+ */
358407 public function getAppNames (): array {
359408 $ appNamesJson = $ this ->json ->get ('app-names ' );
360409 $ retVal = [];
@@ -363,7 +412,13 @@ public function getAppNames(): array {
363412 }
364413 return $ retVal ;
365414 }
366-
415+ /**
416+ * Returns an array that holds different descriptions for the web application
417+ * on different languages.
418+ *
419+ * @return array The indices of the array are language codes such as 'AR' and
420+ * the value of the index is the description.
421+ */
367422 public function getDescriptions (): array {
368423 $ descriptions = $ this ->json ->get ('app-descriptions ' );
369424 $ retVal = [];
@@ -372,7 +427,14 @@ public function getDescriptions(): array {
372427 }
373428 return $ retVal ;
374429 }
375-
430+ /**
431+ * Returns an array that holds different page titles for the web application
432+ * on different languages.
433+ *
434+ * @return array The indices of the array are language codes such as 'AR' and
435+ * the value of the index is the title.
436+ *
437+ */
376438 public function getTitles (): array {
377439 $ titles = $ this ->json ->get ('titles ' );
378440 $ retVal = [];
@@ -381,7 +443,14 @@ public function getTitles(): array {
381443 }
382444 return $ retVal ;
383445 }
384-
446+ /**
447+ * Sets or updates default web page title for a specific display language.
448+ *
449+ * @param string $title The title that will be set.
450+ *
451+ * @param string $langCode The display language at which the title will be
452+ * set or updated for.
453+ */
385454 public function setTitle (string $ title , string $ langCode ) {
386455 $ code = $ this ->isValidLangCode ($ langCode );
387456
0 commit comments