Skip to content

Commit f73b844

Browse files
committed
update
1 parent 7017e3a commit f73b844

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/App.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,17 @@ public function getStrOpt(string $name, string $default = ''): string
378378
return (string)$this->getOpt($name, $default);
379379
}
380380

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+
381392
/****************************************************************************
382393
* getter/setter methods
383394
****************************************************************************/

0 commit comments

Comments
 (0)