Search Results

Search found 1 results on 1 pages for 'xbsxbs'.

Page 1/1 | 1 

  • 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);

    Read the article

1