public function get(string $key)
    {
        if (!isset($this->values[$key])) {
            $value = ini_get($key);

            switch (self::CONVERSIONS[$key] ?? 0) {
                case self::CONVERT_TO_BOOL:
                    $value = Str::toBoolean($value);
                    break;
                case self::CONVERT_TO_INT:
                    $value = (int) $value;
                    break;
                case self::CONVERT_TO_BYTES:
                    $value = self::convertToBytes($value);
                    break;
            }

            $this->values[$key] = $value;
        }

        return $this->values[$key];
    }
public function get(string $key)
    {
        if (!isset($this->values[$key])) {
            $value = ini_get($key);

            switch (self::CONVERSIONS[$key] ?? 0) {
                case self::CONVERT_TO_BOOL:
                    $value = Str::toBoolean($value);
                    break;
                case self::CONVERT_TO_INT:
                    $value = (int) $value;
                    break;
                case self::CONVERT_TO_BYTES:
                    $value = self::convertToBytes($value);
                    break;
            }

            $this->values[$key] = $value;
        }

        return $this->values[$key];
    }
public function get ( string $ key ) { if ( ! isset ( $ this -> values [ $ key ] ) ) { $ value = ini_get ( $ key ) ; switch ( self :: CONVERSIONS [ $ key ] ?? 0 ) { case self :: CONVERT_TO_BOOL : $ value = Str :: toBoolean ( $ value ) ; break ; case self :: CONVERT_TO_INT : $ value = ( int ) $ value ; break ; case self :: CONVERT_TO_BYTES : $ value = self :: convertToBytes ( $ value ) ; break ; } $ this -> values [ $ key ] = $ value ; } return $ this -> values [ $ key ] ; }
Retrieve an ini value

@param string $key The value to retrieve
@return mixed The normalized result
Retrieve an ini value