| 1 | <?php |
||
| 8 | trait ManagesCustomFields |
||
| 9 | { |
||
| 10 | use ImplementsActions; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Get all custom fields. |
||
| 14 | * |
||
| 15 | * @return array |
||
| 16 | */ |
||
| 17 | public function customFields() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Find custom field by name. |
||
| 28 | * |
||
| 29 | * @param string $name |
||
| 30 | * |
||
| 31 | * @return CustomField|null |
||
| 32 | */ |
||
| 33 | public function findCustomField($name) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Add custom field value to contact. |
||
| 46 | * |
||
| 47 | * @param \TestMonitor\ActiveCampaign\Resources\Contact $contact |
||
| 48 | * @param \TestMonitor\ActiveCampaign\Resources\CustomField $customField |
||
| 49 | * @param $value |
||
| 50 | * |
||
| 51 | * @return Contact |
||
| 52 | */ |
||
| 53 | public function addCustomFieldToContact(Contact $contact, CustomField $customField, $value) |
||
| 69 | } |
||
| 70 |