src/MiladRahimi/PhpConfig/Config.php
/**
     * Check if the configuration is set
     *
     * @param string $name
     * @return bool
     */
Check if the configuration is set
@param string $name
@return bool
Check if the configuration is set @param string $name @return bool
public function has(string $name): bool
    {
        $data = $this->repository->getData();
        if (strpos($name, '.') === false) {
            return isset($data[$name]);
        }
        foreach (explode('.', $name) as $segment) {
            if (array_key_exists($segment, $data)) {
                $data = $data[$segment];
            } else {
                return false;
            }
        }
        return true;
    }
public function has ( string $ name ) : bool { $ data = $ this -> repository -> getData ( ) ; if ( strpos ( $ name , '.' ) === false ) { return isset ( $ data [ $ name ] ) ; } foreach ( explode ( '.' , $ name ) as $ segment ) { if ( array_key_exists ( $ segment , $ data ) ) { $ data = $ data [ $ segment ] ; } else { return false ; } } return true ; }
Check if the configuration is set
 @param string $name
 @return bool
Check if the configuration is set @param string $name @return bool