Skip to content

Conversation

@marc-mabe
Copy link
Owner

@marc-mabe marc-mabe commented Mar 18, 2019

  • added mutable methods
    • add($enumerator, $value)
    • addIterable(iterable $map)
    • remove($enumerator)
    • removeIterable(iterable $enumerators)
    • (These methods are added for consistent naming - see Consistent Naming #120)
  • added immutable methods
    • with($enumerator, $value)
    • withIterable(iterable $map)
    • without($enumerator)
    • withoutIterable(iterable $enumerators)
  • other changes
    • added get($enumerator) : returns mapped data value or exception if missing
    • offsetGet($enumerator) now returns null if missing - this change is done to be consistent with offsetExists($enumerator) which gets called by isset and should follow this behavior

@marc-mabe marc-mabe added this to the 4.0.0 milestone Mar 18, 2019
@marc-mabe marc-mabe force-pushed the immutable-enummap branch from f608a64 to 22399dd Compare April 2, 2019 20:02
@marc-mabe marc-mabe changed the title [WIP] Immutable EnumMap Immutable EnumMap Apr 2, 2019
@marc-mabe marc-mabe merged commit f477a0f into 4.x Apr 2, 2019
@marc-mabe marc-mabe deleted the immutable-enummap branch April 2, 2019 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants