Skip to content

Commit 2abfb69

Browse files
committed
Add the ability to retrieve individual values from the Server config class.
1 parent 1fd5740 commit 2abfb69

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Config/Server.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ class Server implements JsonSerializable
1717

1818
//////////////////////////// GETTERS AND SETTERS \\\\\\\\\\\\\\\\\\\\\\\\\\\
1919

20+
final public function get($key)
21+
{
22+
return $this->data[$key] ?: null;
23+
}
24+
2025
private function getRecommended() : array
2126
{
2227
return [

0 commit comments

Comments
 (0)