File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,16 @@ public function setFetchOrderAsc(): MessageQueryInterface;
111111 */
112112 public function setFetchOrderDesc (): MessageQueryInterface ;
113113
114+ /**
115+ * Set the fetch order to show oldest messages first (ascending).
116+ */
117+ public function oldest (): MessageQueryInterface ;
118+
119+ /**
120+ * Set the fetch order to show newest messages first (descending).
121+ */
122+ public function newest (): MessageQueryInterface ;
123+
114124 /**
115125 * Count all available messages matching the current search criteria.
116126 */
Original file line number Diff line number Diff line change @@ -272,4 +272,20 @@ public function setFetchOrderDesc(): MessageQueryInterface
272272 {
273273 return $ this ->setFetchOrder ('desc ' );
274274 }
275+
276+ /**
277+ * {@inheritDoc}
278+ */
279+ public function oldest (): MessageQueryInterface
280+ {
281+ return $ this ->setFetchOrder ('asc ' );
282+ }
283+
284+ /**
285+ * {@inheritDoc}
286+ */
287+ public function newest (): MessageQueryInterface
288+ {
289+ return $ this ->setFetchOrder ('desc ' );
290+ }
275291}
You can’t perform that action at this time.
0 commit comments