php-standard-library/either-or-both
A three-variant disjoint union type for PHP. EitherOrBoth models values that may be present on the left, the right, or both sides at once, giving you a type-safe way to express partial successes, asymmetric results, and paired data without nullable workarounds.
Three-variant disjoint union type (Left/Right/Both) for values that may be present on either or both of two sides
How can I help you explore Laravel packages today?