File "DynamicSegmentsListingRepository.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/lib/Segments/DynamicSegments/DynamicSegmentsListingRepository.php
File size: 502 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace MailPoet\Segments\DynamicSegments;

if (!defined('ABSPATH')) exit;


use MailPoet\Entities\SegmentEntity;
use MailPoet\Segments\SegmentListingRepository;
use MailPoetVendor\Doctrine\ORM\QueryBuilder;

class DynamicSegmentsListingRepository extends SegmentListingRepository {
  protected function applyParameters(QueryBuilder $queryBuilder, array $parameters): void {
    $queryBuilder
      ->andWhere('s.type = :type')
      ->setParameter('type', SegmentEntity::TYPE_DYNAMIC);
  }
}