<?php
namespace PHPFUI\ConstantContact\V3\Contacts;
class SmsEngagementHistory extends \PHPFUI\ConstantContact\Base
{
public function __construct(\PHPFUI\ConstantContact\Client $client)
{
parent::__construct($client, '/v3/contacts/sms_engagement_history/{contact_id}');
}
public function get(string $contact_id) : ?array
{
return $this->doGet(['contact_id' => $contact_id, ]);
}
public function getTyped(string $contact_id) : ?array
{
$data = $this->get($contact_id);
if (is_null($data))
{
return null;
}
$array = [];
foreach ($data as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\SmsEngagementHistory($object);
}
return $array;
}
}