Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
6 / 6
Alberthorta\Bonobo\Report\ListStats
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
5 / 5
5
100.00% covered (success)
100.00%
6 / 6
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 getSubRate
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getUnsubRate
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getOpenRate
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getClickRate
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace Alberthorta\Bonobo\Report;
class ListStats {
    protected $list_stats_data;
    /**
     * ListStats constructor.
     * @param $list_stats_data
     */
    public function __construct($list_stats_data) {
        $this->list_stats_data = $list_stats_data;
    }
    /**
     * @return float
     */
    public function getSubRate() {
        return $this->list_stats_data->sub_rate;
    }
    /**
     * @return float
     */
    public function getUnsubRate() {
        return $this->list_stats_data->unsub_rate;
    }
    /**
     * @return float
     */
    public function getOpenRate() {
        return $this->list_stats_data->open_rate;
    }
    /**
     * @return float
     */
    public function getClickRate() {
        return $this->list_stats_data->click_rate;
    }
}