Overview

Namespaces

  • Apptus
    • ESales
      • Connector
        • Report
        • Time
    • Util
      • Cache
  • PHP
  • Overview
  • Namespace
  • Class
  • Tree
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 
<?php
namespace Apptus\ESales\Connector\Report;

/**
 * Sub class for {@see TopSellingSearchesReport} Contains a search phrase together with
 * the total number of times the search phrase has lead to a purchase of the product or variant specified in the report.
 */
class TopSellingSearchesReportSection {
    private $rank;
    private $phrase;
    private $purchasedUnits;

    /**
     *
     * @param int
     *          The rank of this search phrase.
     * @param string
     *          The search phrase.
     * @param int
     *          The total number of times this search phrase has lead to a purchase of a product or a variant that matches the filter specified in the report.
     */
    public function __construct($rank, $phrase, $purchasedUnits) {
        $this->rank = $rank;
        $this->phrase = $phrase;
        $this->purchasedUnits = $purchasedUnits;
    }

    /**
     * @return int The rank of this search phrase.
     */
    public function rank() {
        return $this->rank;
    }

    /**
     * @return string The search phrase.
     */
    public function phrase() {
        return $this->phrase;
    }

    /**
     * @return int The total number of times this search phrase has lead to a purchase of this product(or variant).
     */
    public function purchasedUnits() {
        return $this->purchasedUnits;
    }
}
Apptus ESales Connector PHP API documentation generated by ApiGen