Skip to content
Snippets Groups Projects
WhereClauseInterface.php 531 B
Newer Older
  • Learn to ignore specific revisions
  • jaapjansma's avatar
    jaapjansma committed
    <?php
    /**
     * @author Jaap Jansma <jaap.jansma@civicoop.org>
     * @license AGPL-3.0
     */
    
    namespace Civi\DataProcessor\DataFlow\SqlDataFlow;
    
    interface WhereClauseInterface {
    
      /**
       * Returns the where clause
       * E.g. contact_type = 'Individual'
       *
       * @return string
       */
      public function getWhereClause();
    
    
      /**
       * Returns true when this where clause can be added to the
       * join or whether this clause should be propagated to the where part of the query
       *
       * @return bool
       */
      public function isJoinClause();
    
    
    jaapjansma's avatar
    jaapjansma committed
    }