Filter/FilterOperands.php
public static function getStringOperandByString($operand)
    {
        if ($operand === null) {
            return self::STRING_STARTS;
        }

        $name = strtoupper(str_replace('text.', 'STRING_', $operand));
        $reflection = new \ReflectionClass(__CLASS__);

        return $reflection->getConstant($name);
    }
public static function getStringOperandByString($operand)
    {
        if ($operand === null) {
            return self::STRING_STARTS;
        }

        $name = strtoupper(str_replace('text.', 'STRING_', $operand));
        $reflection = new \ReflectionClass(__CLASS__);

        return $reflection->getConstant($name);
    }
public static function getStringOperandByString ( $ operand ) { if ( $ operand === null ) { return self :: STRING_STARTS ; } $ name = strtoupper ( str_replace ( 'text.' , 'STRING_' , $ operand ) ) ; $ reflection = new \ ReflectionClass ( __CLASS__ ) ; return $ reflection -> getConstant ( $ name ) ; }
Returns class constant string operand by given string.

@param String $operand
@return int
Returns class constant string operand by given string .