/** * Creates a new instance of Feedback using Smark.io supplierId+externalId as lead key * * @param $api_token string your API token * @param $supplierId string|int the identifier of the supplier in Smark.io * @param $externalId string|int the identifier of the lead for the supplier. * @param $status string the status of the lead * @return Feedback */ public static function createWithSupplierExternalId($api_token, $supplierId, $externalId, $status) { $feedback = new self($api_token); $feedback->setSupplierId($supplierId); $feedback->setExternalId($externalId); $feedback->setStatus($status); return $feedback; }