@@ 44-55 (lines=12) @@ | ||
41 | * @param string $prefix Prefix for the table name in DB |
|
42 | * @param ZohoChangeListener[] $listeners The list of listeners called when a record is inserted or updated. |
|
43 | */ |
|
44 | public function __construct(Connection $connection, $prefix = 'zoho_', array $listeners = [], LoggerInterface $logger = null) |
|
45 | { |
|
46 | $this->connection = $connection; |
|
47 | $this->prefix = $prefix; |
|
48 | $this->listeners = $listeners; |
|
49 | if ($logger === null) { |
|
50 | $this->logger = new NullLogger(); |
|
51 | } else { |
|
52 | $this->logger = $logger; |
|
53 | } |
|
54 | $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param LoggerInterface $logger |
@@ 39-49 (lines=11) @@ | ||
36 | * @param Connection $connection |
|
37 | * @param string $prefix Prefix for the table name in DB |
|
38 | */ |
|
39 | public function __construct(Connection $connection, $prefix = 'zoho_', LoggerInterface $logger = null) |
|
40 | { |
|
41 | $this->connection = $connection; |
|
42 | $this->prefix = $prefix; |
|
43 | if ($logger === null) { |
|
44 | $this->logger = new NullLogger(); |
|
45 | } else { |
|
46 | $this->logger = $logger; |
|
47 | } |
|
48 | $this->localChangesTracker = new LocalChangesTracker($connection, $this->logger); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @param LoggerInterface $logger |