您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MerchantSolver.php 478B

123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Solver\Merchant;
  3. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  4. class MerchantSolver
  5. {
  6. public function getNewsletters(MerchantInterface $merchant): array
  7. {
  8. $newsletterArray = [];
  9. foreach($merchant->getSections() as $section) {
  10. foreach($section->getNewsletters() as $newsletter) {
  11. $newsletterArray[] = $newsletter;
  12. }
  13. }
  14. return $newsletterArray;
  15. }
  16. }