You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 satır
467B

  1. <?php
  2. namespace Lc\CaracoleBundle\Solver\Section;
  3. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  4. class SectionSolver
  5. {
  6. // @TODO : à voir si pertinent
  7. public function getNewsletter(SectionInterface $section)
  8. {
  9. $newsletters = $section->getNewsletters();
  10. foreach ($newsletters as $newsletter) {
  11. if ($newsletter->getIsMain()) {
  12. return $newsletter;
  13. }
  14. }
  15. return false;
  16. }
  17. }