private function argValue($value) {
        if (is_bool($value)) {
            return (int)$value;
        } elseif ($value instanceof \DateTimeInterface) {
            return $value->format(self::MYSQL_DATE_FORMAT);
        } else {
            return $value;
        }
    }
private function argValue($value) {
        if (is_bool($value)) {
            return (int)$value;
        } elseif ($value instanceof \DateTimeInterface) {
            return $value->format(self::MYSQL_DATE_FORMAT);
        } else {
            return $value;
        }
    }
private function argValue ( $ value ) { if ( is_bool ( $ value ) ) { return ( int ) $ value ; } elseif ( $ value instanceof \ DateTimeInterface ) { return $ value -> format ( self :: MYSQL_DATE_FORMAT ) ; } else { return $ value ; } }
Convert a value into something usable as a PDO parameter.

@param mixed $value The value to convert.
@return mixed Returns the converted value or the value itself if it's fine.
Convert a value into something usable as a PDO parameter .