1515 UserId ,
1616 AppId ,
1717};
18- use Innmind \TimeContinuum \{
19- PointInTime ,
18+ use Innmind \Time \{
19+ Point ,
2020 Period ,
2121};
2222use Innmind \Filesystem \File \Content ;
@@ -51,7 +51,7 @@ final class Message
5151 private Maybe $ expiration ;
5252 /** @var Maybe<Id> */
5353 private Maybe $ id ;
54- /** @var Maybe<PointInTime > */
54+ /** @var Maybe<Point > */
5555 private Maybe $ timestamp ;
5656 /** @var Maybe<Type> */
5757 private Maybe $ type ;
@@ -92,7 +92,7 @@ private function __construct(Sequence $chunks, int $length)
9292 $ this ->expiration = Maybe::nothing ();
9393 /** @var Maybe<Id> */
9494 $ this ->id = Maybe::nothing ();
95- /** @var Maybe<PointInTime > */
95+ /** @var Maybe<Point > */
9696 $ this ->timestamp = Maybe::nothing ();
9797 /** @var Maybe<Type> */
9898 $ this ->type = Maybe::nothing ();
@@ -304,7 +304,7 @@ public function withId(Id $id): self
304304 }
305305
306306 /**
307- * @return Maybe<PointInTime >
307+ * @return Maybe<Point >
308308 */
309309 #[\NoDiscard]
310310 public function timestamp (): Maybe
@@ -313,7 +313,7 @@ public function timestamp(): Maybe
313313 }
314314
315315 #[\NoDiscard]
316- public function withTimestamp (PointInTime $ timestamp ): self
316+ public function withTimestamp (Point $ timestamp ): self
317317 {
318318 $ self = clone $ this ;
319319 $ self ->timestamp = Maybe::just ($ timestamp );
@@ -380,7 +380,7 @@ public function body(): Str
380380 {
381381 return $ this
382382 ->chunks
383- ->fold (new Concat )
383+ ->fold (Concat::monoid )
384384 ->toEncoding (Str \Encoding::ascii);
385385 }
386386
0 commit comments