Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
4 / 4 |
CRAP | |
100.00% |
5 / 5 |
| Alberthorta\Bonobo\Report\Bounces | |
100.00% |
1 / 1 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
5 / 5 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getHardBounces | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getSoftBounces | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getSyntaxErrors | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace Alberthorta\Bonobo\Report; | |
| class Bounces { | |
| protected $bounces_data; | |
| /** | |
| * Bounces constructor. | |
| * @param $bounces_data | |
| */ | |
| public function __construct($bounces_data) { | |
| $this->bounces_data = $bounces_data; | |
| } | |
| /** | |
| * @return int | |
| */ | |
| public function getHardBounces() { | |
| return $this->bounces_data->hard_bounces; | |
| } | |
| /** | |
| * @return int | |
| */ | |
| public function getSoftBounces() { | |
| return $this->bounces_data->soft_bounces; | |
| } | |
| /** | |
| * @return int | |
| */ | |
| public function getSyntaxErrors() { | |
| return $this->bounces_data->syntax_errors; | |
| } | |
| } |