We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7017e3a commit f73b844Copy full SHA for f73b844
src/App.php
@@ -378,6 +378,17 @@ public function getStrOpt(string $name, string $default = ''): string
378
return (string)$this->getOpt($name, $default);
379
}
380
381
+ /**
382
+ * @param string $name
383
+ * @param bool $default
384
+ *
385
+ * @return bool
386
+ */
387
+ public function getBoolOpt(string $name, bool $default = false): bool
388
+ {
389
+ return (bool)$this->getOpt($name, $default);
390
+ }
391
+
392
/****************************************************************************
393
* getter/setter methods
394
****************************************************************************/
0 commit comments