web-base/Core/Driver/SQL/Strategy/UpdateStrategy.class.php

22 lines
473 B
PHP
Raw Permalink Normal View History

2020-04-02 00:02:51 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Driver\SQL\Strategy;
2020-04-02 00:02:51 +02:00
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
}