2017-11-19 15:49:41 -05:00
|
|
|
<?php
|
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2021-04-14 11:17:01 -04:00
|
|
|
|
2017-11-19 15:49:41 -05:00
|
|
|
namespace JKingWeb\Arsse\Db;
|
|
|
|
|
|
|
|
class ResultEmpty extends AbstractResult {
|
2019-01-10 19:01:32 -05:00
|
|
|
protected $changes = 0;
|
|
|
|
protected $id = 0;
|
2020-03-01 15:16:50 -05:00
|
|
|
|
2019-01-10 19:01:32 -05:00
|
|
|
public function __construct(int $changes = 0, int $id = 0) {
|
|
|
|
$this->changes = $changes;
|
|
|
|
$this->id = $id;
|
|
|
|
}
|
|
|
|
|
2018-11-02 11:47:10 -04:00
|
|
|
public function changes(): int {
|
2019-01-10 19:01:32 -05:00
|
|
|
return $this->changes;
|
2017-11-19 15:49:41 -05:00
|
|
|
}
|
|
|
|
|
2018-11-02 11:47:10 -04:00
|
|
|
public function lastId(): int {
|
2019-01-10 19:01:32 -05:00
|
|
|
return $this->id;
|
2017-11-19 15:49:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// PHP iterator methods
|
|
|
|
|
|
|
|
public function valid() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|