$mappings A map of keys to values. * * @return static A new instance of this class with only the specified key-value mappings. * * @throws Exception If problem creating. * * @psalm-suppress PossiblyUnusedMethod */ public function withMappings(array $mappings): WritableContainerInterface; /** * Creates a new instance with the specified mappings added to existing ones. * * @since [*next-version*] * * @param array $mappings A map of keys to values. * * @return static A new instance of this class with the specified key-value mappings added to existing ones. * * @throws Exception If problem creating. * * @psalm-suppress PossiblyUnusedMethod */ public function withAddedMappings(array $mappings): WritableContainerInterface; /** * Creates a new instance with the specified keys not present. * * @since [*next-version*] * * @param array $keys The keys to exclude. * * @return static A new instance of this class which does not contain the specified keys. * * @throws Exception If problem instantiating. * * @psalm-suppress PossiblyUnusedMethod */ public function withoutKeys(array $keys): WritableContainerInterface; }