Overview

Namespaces

  • Apptus
    • ESales
      • Connector
        • Report
        • Time
    • Util
      • Cache
  • PHP

Classes

  • Ad
  • AdConversionReport
  • AdConversionReportSection
  • AdList
  • AdListSection
  • AdOrderValueReport
  • AdOrderValueReportSection
  • AdPlacementReport
  • AdPlacementReportSection
  • Attribute
  • PanelConversionReport
  • PanelConversionReportSection
  • Placement
  • ProductSalesByAttributeReport
  • ProductSalesByAttributeReportSection
  • ProductSalesByTimeReport
  • ProductTopSellersReport
  • ProductTopSellersReportSection
  • Rate
  • Report
  • SearchConversion
  • SearchCount
  • SearchStatisticsReport
  • SessionStatistics
  • SessionStatisticsReport
  • SessionSummaryReport
  • Summary
  • Timeline
  • TimelineType
  • TimeSlot
  • TopSellingSearchesReport
  • TopSellingSearchesReportSection

Exceptions

  • FormatException
  • Overview
  • Namespace
  • Class
  • Tree

Class Rate

A wrapper class for a double representing a rate.

The class has methods to format the rate as percentage or per mille.

Namespace: Apptus\ESales\Connector\Report
Located at Connector/Report/Rate.php
Methods summary
public
# __construct( float $v )

Parameters

$v
value.
public static
# NaN( )
public
# __toString( )
public string
# percent( integer $decimals )

Formats the rate as percentage with $decimals number of decimals.

Formats the rate as percentage with $decimals number of decimals.

Parameters

$decimals
number of decimals to use when the rate is formatted.

Returns

string
The rate formatted as percentage. Example: 15.4 %
public string
# perMille( integer $decimals )

Formats the rate as per mille with {@code decimals} number of decimals.

Formats the rate as per mille with {@code decimals} number of decimals.

Parameters

$decimals
number of decimals to use when the rate is formatted.

Returns

string
The rate formatted as per mille. Example: 7.25 ‰
public float
# value( )

Returns

float
The rate in decimal form.
Apptus ESales Connector PHP API documentation generated by ApiGen