protected function getLeftComparison(SearchCriterion $searchCriterion)
    {
        switch ($searchCriterion->getComparison()) {
            case SearchCriterion::GREATER_EQUAL:
            case SearchCriterion::GREATER_THAN:
                return $searchCriterion->getValue();
            case SearchCriterion::ISNULL:
            case SearchCriterion::ISNOTNULL:
            case SearchCriterion::LESS_EQUAL:
            case SearchCriterion::LESS_THAN:
                return '*';
            default:
                throw new InvalidArgumentException('Invalid comparison for RangeCriterion');
        }
    }
protected function getLeftComparison(SearchCriterion $searchCriterion)
    {
        switch ($searchCriterion->getComparison()) {
            case SearchCriterion::GREATER_EQUAL:
            case SearchCriterion::GREATER_THAN:
                return $searchCriterion->getValue();
            case SearchCriterion::ISNULL:
            case SearchCriterion::ISNOTNULL:
            case SearchCriterion::LESS_EQUAL:
            case SearchCriterion::LESS_THAN:
                return '*';
            default:
                throw new InvalidArgumentException('Invalid comparison for RangeCriterion');
        }
    }
protected function getLeftComparison ( SearchCriterion $ searchCriterion ) { switch ( $ searchCriterion -> getComparison ( ) ) { case SearchCriterion :: GREATER_EQUAL : case SearchCriterion :: GREATER_THAN : return $ searchCriterion -> getValue ( ) ; case SearchCriterion :: ISNULL : case SearchCriterion :: ISNOTNULL : case SearchCriterion :: LESS_EQUAL : case SearchCriterion :: LESS_THAN : return '*' ; default : throw new InvalidArgumentException ( 'Invalid comparison for RangeCriterion' ) ; } }
Select the value that we want as our left comparison value.

@param SearchCriterion $searchCriterion
@return mixed|string
@throws InvalidArgumentException
Select the value that we want as our left comparison value .