original_string: public static function create($modelAlias = null, $criteria = null)
      {
          if ($criteria instanceof ApiLogQuery) {
              return $criteria;
          }
          $query = new ApiLogQuery(null, null, $modelAlias);
  
          if ($criteria instanceof Criteria) {
              $query->mergeWith($criteria);
          }
  
          return $query;
      }
code: public static function create($modelAlias = null, $criteria = null)
      {
          if ($criteria instanceof ApiLogQuery) {
              return $criteria;
          }
          $query = new ApiLogQuery(null, null, $modelAlias);
  
          if ($criteria instanceof Criteria) {
              $query->mergeWith($criteria);
          }
  
          return $query;
      }
code_tokens: public static function create ( $ modelAlias = null , $ criteria = null ) { if ( $ criteria instanceof ApiLogQuery ) { return $ criteria ; } $ query = new ApiLogQuery ( null , null , $ modelAlias ) ; if ( $ criteria instanceof Criteria ) { $ query -> mergeWith ( $ criteria ) ; } return $ query ; }
docstring: Returns a new ApiLogQuery object.
  
  @param     string $modelAlias The alias of a model in the query
  @param   ApiLogQuery|Criteria $criteria Optional Criteria to build the query from
  
  @return ApiLogQuery
docstring_tokens: Returns a new ApiLogQuery object .