Add mutator package documentation#8
Conversation
Documents the phpnomad/mutator package, which provides interfaces and traits for implementing flexible data transformation pipelines. Includes: - Mutator interface - MutatorHandler interface - MutationAdapter interface - MutationStrategy interface - HasMutations interface - CanMutateFromAdapter trait 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e8670a2a5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $this->logger->info('Starting mutation', ['args' => $args]); | ||
|
|
||
| $result = parent::mutate(...$args); // Call trait method |
There was a problem hiding this comment.
Use trait alias instead of parent::mutate() in example
The override example calls parent::mutate(...), but classes using a trait typically do not have a parent method named mutate, so this would trigger a fatal error in any class that doesn’t extend a base class providing mutate(). If you intend to show how to call the trait implementation, the example needs a trait alias (e.g., use CanMutateFromAdapter { mutate as private baseMutate; }) and then call $this->baseMutate(...). Otherwise readers copying this snippet will get an immediate runtime failure.
Useful? React with 👍 / 👎.
Documents the phpnomad/mutator package, which provides interfaces and traits for implementing flexible data transformation pipelines.
Includes:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com