File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ public static function fromMessage(MessageInterface $message): static
2222
2323 public function getDelaySeconds (): float
2424 {
25- return $ this ->getMetadata () [self ::META_DELAY_SECONDS ] ?? 0.0 ;
25+ return $ this ->metadata [self ::META_DELAY_SECONDS ] ?? 0.0 ;
2626 }
2727}
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ abstract class Envelope implements MessageInterface
1111 /** @psalm-suppress MissingClassConstType */
1212 final public const ENVELOPE_STACK_KEY = 'envelopes ' ;
1313
14- private readonly MessageInterface $ message ;
15-
1614 /**
1715 * @psalm-var array<string, mixed>
1816 */
19- private readonly array $ metadata ;
17+ protected readonly array $ metadata ;
18+
19+ private readonly MessageInterface $ message ;
2020
2121 public function __construct (MessageInterface $ message , array $ metadata )
2222 {
Original file line number Diff line number Diff line change @@ -37,6 +37,6 @@ public static function fromMessage(MessageInterface $message): static
3737
3838 public function getId (): string |int |null
3939 {
40- return $ this ->getMetadata () [self ::MESSAGE_ID_KEY ];
40+ return $ this ->metadata [self ::MESSAGE_ID_KEY ];
4141 }
4242}
You can’t perform that action at this time.
0 commit comments