Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encapsulate the event ID into its own value object #1013

Merged
merged 3 commits into from
May 7, 2020

Conversation

ste93cry
Copy link
Collaborator

@ste93cry ste93cry commented May 5, 2020

Q A
Branch? 2.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes (kind of)
License MIT

Small refactor to start encapsulating the ID of an event inside its own value object. The idea behind this change is to typehint this information in 3.0 in all methods that accepts or returns it instead of accepting a generic string value that noone can guarantee to be valid without validating it every time

src/EventId.php Outdated Show resolved Hide resolved
src/Event.php Outdated Show resolved Hide resolved
Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny comment about adding a nice-to-have method on the EventId class. But looks good 👍

src/EventId.php Show resolved Hide resolved
src/Event.php Outdated Show resolved Hide resolved
@ste93cry ste93cry requested a review from Jean85 May 7, 2020 13:00
@ste93cry ste93cry force-pushed the feature/event-id-value-object branch from c7c4b71 to fd9ae4c Compare May 7, 2020 13:12
@ste93cry ste93cry merged commit a6bf8f4 into getsentry:develop May 7, 2020
@ste93cry ste93cry deleted the feature/event-id-value-object branch May 7, 2020 13:32
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.

None yet

3 participants