ArrayAdapter::get( string $name )
Get an environment variable, if it exists.
Parameters
- $name
-
(Required)
Return
(PhpOptionOption)
Source
File: vendor/vlucas/phpdotenv/src/Environment/Adapter/ArrayAdapter.php
public function get($name)
{
if (array_key_exists($name, $this->variables)) {
return Some::create($this->variables[$name]);
}
return None::create();
}