maxDepth = $maxDepth; $this->dictAsObject = $dictAsObject; } /** * Gets the maximum recursion depth. * * @return int Maximum recursion depth. */ public function getMaxDepth(): int { return $this->maxDepth; } /** * Gets whether dictionaries should be decoded as objects (instances of stdClass). * * @return bool True if dictionaries should be objects, false if they should be associative arrays. */ public function shouldDecodeDictAsObject(): bool { return $this->dictAsObject; } }