Skip to content

Collection

Properties

container

private array $container

Methods

factory

public static factory(array|\Qubus\Config\Configuration $config): \Qubus\Config\Collection
  • This method is static.

Parameters:

Parameter Type Description
$config array|\Qubus\Config\Configuration

setConfigKey

Set a config

public setConfigKey(string $key, mixed $value): self

Parameters:

Parameter Type Description
$key string
$value mixed

hasConfigKey

Checks if a key exists.

public hasConfigKey(string $key): bool

Parameters:

Parameter Type Description
$key string

removeConfigKey

public removeConfigKey(string $key): void

Parameters:

Parameter Type Description
$key string

getConfigKey

Get a config

public getConfigKey(string $key, mixed|null $default = null): mixed

Parameters:

Parameter Type Description
$key string
$default mixed|null

Throws:


reset

public reset(): $this

__get

public __get(string $key): mixed

Parameters:

Parameter Type Description
$key string

Throws:


__call

public __call(mixed $key, array|null $args = null): mixed

Parameters:

Parameter Type Description
$key mixed
$args array|null

Throws:


__isset

public __isset(mixed $key): bool

Parameters:

Parameter Type Description
$key mixed

Throws:


offsetExists

public offsetExists(mixed $offset): bool

Parameters:

Parameter Type Description
$offset mixed

Throws:


offsetGet

public offsetGet(mixed $offset): mixed

Parameters:

Parameter Type Description
$offset mixed

Throws:


offsetSet

public offsetSet(mixed $offset, mixed $value): void

Parameters:

Parameter Type Description
$offset mixed
$value mixed

offsetUnset

public offsetUnset(mixed $offset): void

Parameters:

Parameter Type Description
$offset mixed

Inherited methods

__construct

public __construct(array|\Qubus\Config\Configuration $config): mixed

Parameters:

Parameter Type Description
$config array|\Qubus\Config\Configuration

Throws:


getPaths

public getPaths(): \Qubus\Config\Path\PathCollection

setPaths

public setPaths(\Qubus\Config\Path\PathCollection $pathCollection): $this

Parameters:

Parameter Type Description
$pathCollection \Qubus\Config\Path\PathCollection

setEnvironment

public setEnvironment(?string $environment = null): $this

Parameters:

Parameter Type Description
$environment ?string

removeEnvironment

public removeEnvironment(): $this

getEnvironment

public getEnvironment(): ?string

getDotenv

public getDotenv(): ?\Dotenv\Dotenv

setDotenv

public setDotenv(\Dotenv\Dotenv $dotenv): $this

Parameters:

Parameter Type Description
$dotenv \Dotenv\Dotenv


Automatically generated on 2025-10-13