Jacek Kowalski
2024-10-24 2b276040c31fb8cab7ff19e968dab4064450d74b
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
<?php
 
namespace SIPL\UCRM\wFirma;
 
abstract class Synchronizer {
    protected \Webit\WFirmaSDK\Entity\ModuleApiFactory $wfirma;
    protected UcrmHelper $helper;
 
    function __construct(\Webit\WFirmaSDK\Entity\ModuleApiFactory $wFirmaApi, UcrmHelper $ucrmHelper) {
        $this->wfirma = $wFirmaApi;
        $this->helper = $ucrmHelper;
    }
 
    /**
     * @param int $entityId
     * @return bool TRUE if anything was modified, FALSE otherwise
     */
    public function synchronize(int $entityId): bool {
        return FALSE;
    }
 
    /**
     * @param array $entity
     * @return bool TRUE if anything was deleted, FALSE otherwise
     */
    public function delete(array $entity): bool {
        return FALSE;
    }
}