/** @test */ public function should_return_id_as_string() { $id = NotificationId::fromString('d16f9fe7-e947-460e-99f6-2d64d65f46bc'); $this->assertEquals('d16f9fe7-e947-460e-99f6-2d64d65f46bc', $id->toString()); $this->assertEquals('d16f9fe7-e947-460e-99f6-2d64d65f46bc', (string) $id); }
/** * Get the Notification id * * @return NotificationId */ public function id() { return NotificationId::fromString($this->id); }