Jake Vanderwerf
2026-07-12 c204185ae86a98994f80010abf35a190c9406739
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace JVBase\integrations;
 
use Exception;
 
if (!defined('ABSPATH')) {
    exit;
}
 
trait SyncFrom {
    use SyncHelpers;
    /**
     * @param array $itemData
     * @return bool
     * @throws Exception
     */
    protected function createItemFromService(array $itemData):bool
    {
        throw new Exception('createItemFromService must be implemented by child class '.$this->service_name);
    }
 
    /**
     * @param array $itemData
     * @return bool
     * @throws Exception
     */
    protected function updateItemFromService(array $itemData):bool
    {
        throw new Exception('updateItemFromService must be implemented by child class '.$this->service_name);
    }
 
    /**
     * @param array $itemData
     * @return bool
     * @throws Exception
     */
    protected function deleteItemFromService(array $itemData):bool
    {
        throw new Exception('deleteItemFromService must be implemented by child class '.$this->service_name);
    }
}