QuoteRepositoryInterface
in
Describes behavior of quote repository
Table of Contents
Methods
- add() : int
- Persists a new quote entity.
- fetchLatestQuote() : Quote|null
- Fetches the latest quote for today.
Methods
add()
Persists a new quote entity.
public
add(Quote $quote) : int
Parameters
- $quote : Quote
-
The quote entity to add
Tags
Return values
int —id
fetchLatestQuote()
Fetches the latest quote for today.
public
fetchLatestQuote() : Quote|null
Returns the quote with the most recent fetched_on date matching today's date.
Tags
Return values
Quote|null —The latest quote for today or null if none exists