public static function getComparator(DataTablesMappingInterface $mapping) {

        if (null === $mapping->getParent()) {
            return "LIKE";
        }

        switch ($mapping->getParent()->getType()) {

            case DataTablesColumnInterface::DATATABLES_TYPE_DATE:
            case DataTablesColumnInterface::DATATABLES_TYPE_HTML_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM_FMT:
                return "=";
        }

        return "LIKE";
    }
public static function getComparator(DataTablesMappingInterface $mapping) {

        if (null === $mapping->getParent()) {
            return "LIKE";
        }

        switch ($mapping->getParent()->getType()) {

            case DataTablesColumnInterface::DATATABLES_TYPE_DATE:
            case DataTablesColumnInterface::DATATABLES_TYPE_HTML_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM:
            case DataTablesColumnInterface::DATATABLES_TYPE_NUM_FMT:
                return "=";
        }

        return "LIKE";
    }
public static function getComparator ( DataTablesMappingInterface $ mapping ) { if ( null === $ mapping -> getParent ( ) ) { return "LIKE" ; } switch ( $ mapping -> getParent ( ) -> getType ( ) ) { case DataTablesColumnInterface :: DATATABLES_TYPE_DATE : case DataTablesColumnInterface :: DATATABLES_TYPE_HTML_NUM : case DataTablesColumnInterface :: DATATABLES_TYPE_NUM : case DataTablesColumnInterface :: DATATABLES_TYPE_NUM_FMT : return "=" ; } return "LIKE" ; }
Get a comparator.

@param DataTablesMappingInterface $mapping The mapping.
@return string Returns the comparator.
Get a comparator .