DealerShedulesQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A filterByPeriodNotNull() 0 5 1
A filterByPeriodNull() 0 5 1
1
<?php
2
3
namespace Dealer\Model;
4
5
use Dealer\Model\Base\DealerShedulesQuery as BaseDealerShedulesQuery;
6
use Dealer\Model\Map\DealerShedulesTableMap;
7
use Propel\Runtime\ActiveQuery\Criteria;
8
9
10
/**
11
 * Skeleton subclass for performing query and update operations on the 'dealer_shedules' table.
12
 *
13
 *
14
 *
15
 * You should add additional methods to this class to meet the
16
 * application requirements.  This class will only be generated as
17
 * long as it does not already exist in the output directory.
18
 *
19
 */
20
class DealerShedulesQuery extends BaseDealerShedulesQuery
21
{
22
    public function filterByPeriodNotNull()
23
    {
24
        return $this->where(DealerShedulesTableMap::PERIOD_BEGIN . " " . Criteria::ISNOTNULL . " " . Criteria::LOGICAL_AND . " " . DealerShedulesTableMap::PERIOD_END . " " . Criteria::ISNOTNULL);
25
26
    }
27
    public function filterByPeriodNull()
28
    {
29
        return $this->where(DealerShedulesTableMap::PERIOD_BEGIN . " " . Criteria::ISNULL . " " . Criteria::LOGICAL_AND . " " . DealerShedulesTableMap::PERIOD_END . " " . Criteria::ISNULL);
30
31
    }
32
} // DealerShedulesQuery
33