Copied!

Interface for reading configuration values

AbstractInterface
Methods
public abstract exists(string $key) : bool
 
  • param string $key Configuration option path/key
  • psalm-param non-empty-string $key
  • return bool Whether the given option exists
  • throws \ValidationException if the schema failed to validate the given input
public abstract get(string $key)
 
  • param string $key Configuration option path/key
  • psalm-param non-empty-string $key
  • return mixed
  • throws \ValidationException if the schema failed to validate the given input
  • throws \UnknownOptionException if the requested key does not exist or is malformed
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration