for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Lenevor Framework
*
* LICENSE
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* https://lenevor.com/license
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
* @package Lenevor
* @subpackage Base
* @link https://lenevor.com
* @copyright Copyright (c) 2019 - 2021 Alexander Campo <[email protected]>
* @license https://opensource.org/licenses/BSD-3-Clause New BSD license or see https://lenevor.com/license or see /LICENSE
*/
namespace Syscodes\Dotenv\Repository\Adapters;
* Reads an environment variable.
* @author Alexander Campo <[email protected]>
final class Readers
{
* The set of readers to use.
* @var \Syscodes\Dotenv\Repository\Adapters\Readers $readers
protected $readers;
* Constructor. The create new Readers instance.
* @param \Syscodes\Dotenv\Repository\Adapters\Readers $readers
* return void
public function __construct(array $readers)
$this->readers = $readers;
$readers
array
Syscodes\Dotenv\Repository\Adapters\Readers
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* Read an environment variable
* @param string $name
* @return mixed
public function read(string $name)
foreach ($this->readers as $reader) {
return $reader->read($name);
return null;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..