Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- <?php
-
- namespace Lc\CaracoleBundle\Solver\Merchant;
-
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
-
- class MerchantSolver
- {
- public function getNewsletters(MerchantInterface $merchant): array
- {
- $newsletterArray = [];
-
- foreach($merchant->getSections() as $section) {
- foreach($section->getNewsletters() as $newsletter) {
- $newsletterArray[] = $newsletter;
- }
- }
-
- return $newsletterArray;
- }
-
- public function getSectionsOnline(MerchantInterface $merchant):array{
- $sectionArray = [];
-
- foreach($merchant->getSections() as $section) {
- if($section->getStatus() == 1){
- $sectionArray[] = $section;
- }
- }
-
- return $sectionArray;
- }
- }
|