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: 50: 51: 52: 
<?php
namespace Apptus\ESales\Connector\Report;

/**
 * Sub class for AdList report.
 *
 * Contains information about an ad together with conversion rate and click through rate.
 */
class AdListSection {
    private $ad;
    private $conversion;
    private $ctr;

    /**
     * @param Ad
     *            Information about this ad. Can not be null.
     * @param Rate
     *            Conversion rate for this ad. Use Rate::NaN() if conversion rate could not be calculated.
     * @param Rate
     *            Click through rate for this ad. Use Rate::NaN() if click through rate could not be calculated.
     */
    function __construct(Ad $ad, Rate $conversion, Rate $ctr) {
        $this->ad = $ad;
        $this->conversion = $conversion;
        $this->ctr = $ctr;
    }

    /**
     * @return Ad
     *            The ad information.
     */
    public function ad() {
        return $this->ad;
    }

    /**
     * @return Rate
     *            The conversion rate for this ad. Returns Rate::NaN() if the conversion rate could not be calculated for this ad.
     */
    public function conversion() {
        return $this->conversion;
    }

    /**
     * @return Rate
     *            The click through rate for this ad. Returns Rate::NaN() if the click through rate could not be calculated for this ad.
     */
    public function ctr() {
        return $this->ctr;
    }
}
Apptus ESales Connector PHP API documentation generated by ApiGen