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