| 1 | <?php |
||
| 11 | class DeleteCommand extends TableCommand |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Where conditions (short where format). |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $where = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Table $table |
||
| 22 | * @param mixed $where |
||
| 23 | */ |
||
| 24 | public function __construct(Table $table, array $where) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param array $where |
||
| 32 | */ |
||
| 33 | public function setWhere(array $where) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Inserting data into associated table. |
||
| 40 | */ |
||
| 41 | public function execute() |
||
| 46 | } |