Skip to content

Make Distil\Criteria immutable #15

Description

@remipelhate

The current implementation uses a mutable approach, meaning calling Criteria::add() or Criteria::set() will actually change the state of the instance.

For the 1.0 release, we'll shift to an immutable system where setters will return a new Criteria instance, leaving the state of the original instance untouched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions