Example #1
0
 public function __construct(array $jsonData)
 {
     foreach ($jsonData['Campaigns'] as $campaign) {
         $entry = CampaignDetails::withJSON($campaign);
         $this->append($entry);
     }
 }
 public function setUp()
 {
     $this->_jsonData = json_decode(file_get_contents(__DIR__ . '/../../tests/JsonResponses/getCampaignsRawJsonResponse.html'), true)['Context']['Campaigns'][0];
     $this->_campaignDetails = CampaignDetails::withJSON($this->_jsonData);
 }