configs, $key, $default); } /** * Returns true if the container can return an entry for the given identifier. * Returns false otherwise. * * @param string $key identifier of the entry to look for */ public function has(string $key): bool { return Arr::has($this->configs, $key); } /** * Set a value to the container by its identifier. * * @param string $key identifier of the entry to set * @param mixed $value the value that save to container */ public function set(string $key, mixed $value): void { data_set($this->configs, $key, $value); } }