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