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\TimeseriesElement
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
 getTimestamp
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getEmailsSent
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getUniqueOpens
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getRecipientsClicks
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace Alberthorta\Bonobo\Report;
class TimeseriesElement {
    protected $timeseries_element_data;
    /**
     * TimeseriesElement constructor.
     * @param $timeseries_element_data
     */
    public function __construct($timeseries_element_data) {
        $this->timeseries_element_data = $timeseries_element_data;
    }
    /**
     * @return \DateTime
     */
    public function getTimestamp() {
        return new \DateTime($this->timeseries_element_data->timestamp);
    }
    /**
     * @return int
     */
    public function getEmailsSent() {
        return $this->timeseries_element_data->emails_sent;
    }
    /**
     * @return int
     */
    public function getUniqueOpens() {
        return $this->timeseries_element_data->unique_opens;
    }
    /**
     * @return int
     */
    public function getRecipientsClicks() {
        return $this->timeseries_element_data->recipients_clicks;
    }
}