2020-04-02 00:02:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Driver\SQL\Strategy;
|
|
|
|
|
|
|
|
class UpdateStrategy extends Strategy {
|
|
|
|
|
2020-04-03 17:39:58 +02:00
|
|
|
private array $values;
|
2020-06-18 15:08:09 +02:00
|
|
|
private array $conflictingColumns;
|
2020-04-02 00:02:51 +02:00
|
|
|
|
2020-06-27 22:47:12 +02:00
|
|
|
public function __construct(array $conflictingColumns, array $values) {
|
2020-06-18 15:08:09 +02:00
|
|
|
$this->conflictingColumns = $conflictingColumns;
|
2020-04-02 00:02:51 +02:00
|
|
|
$this->values = $values;
|
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getConflictingColumns(): array {
|
2020-06-18 15:08:09 +02:00
|
|
|
return $this->conflictingColumns;
|
|
|
|
}
|
|
|
|
|
2021-04-02 21:58:06 +02:00
|
|
|
public function getValues(): array {
|
|
|
|
return $this->values;
|
|
|
|
}
|
2020-04-03 17:39:58 +02:00
|
|
|
}
|