Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
6 / 6 |
| Alberthorta\Bonobo\MailingList\CampaignDefaults | |
100.00% |
1 / 1 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
6 / 6 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getFromName | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getFromEmail | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getSubject | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getLanguage | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace Alberthorta\Bonobo\MailingList; | |
| class CampaignDefaults { | |
| protected $campaign_defaults; | |
| /** | |
| * CampaignDefaults constructor. | |
| * @param $campaign_defaults | |
| */ | |
| public function __construct($campaign_defaults) { | |
| $this->campaign_defaults = $campaign_defaults; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getFromName() { | |
| return $this->campaign_defaults->from_name; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getFromEmail() { | |
| return $this->campaign_defaults->from_email; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getSubject() { | |
| return $this->campaign_defaults->subject; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getLanguage() { | |
| return $this->campaign_defaults->language; | |
| } | |
| } |