From d581470c28baeb1ac81a2665cffb3e88137d76f3 Mon Sep 17 00:00:00 2001 From: Chris W Jones Date: Wed, 14 Oct 2026 12:11:15 -0400 Subject: [PATCH] #60 Add clarifying comments in README This adds comments to the constructors in the README to clarify what each field is used for. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 19e0048..208e117 100644 --- a/README.md +++ b/README.md @@ -22,19 +22,29 @@ use CloudEvents\V1\CloudEventImmutable; // Immutable CloudEvent $immutableEvent = new CloudEventImmutable( + # Event ID '1n6bFxDMHZFChlI4TVI9tdzphB9', + # Event source '/examples/php-sdk', + # Event type 'com.example.type', + # Data attached to event ['example' => 'first-event'], + # mime-type of extra data 'application/json' ); // Mutable CloudEvent $mutableEvent = new CloudEvent( + # Event ID '1n6bFxDMHZFChlI4TVI9tdzphB9', + # Event source '/examples/php-sdk', + # Event type 'com.example.type', + # Data attached to event ['example' => 'first-event'], + # mime-type of extra data 'application/json' );