what service class to use to incapsulate method
- by xbsxbs
I have to write a simple method extractArticle() that returns Article object which is extracted from Message object. I have MessageService and ArticleService classes intended to handle tasks like this. What service class is more correctly to use to incapsulate extractArticle() funcionality?
$article = MessageService::extractArticle(Message $message);
or
$article = ArticleService::extractArticleFromMessage(Message $message);