1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* FullTextSearch - Full text search framework for Nextcloud |
4
|
|
|
* |
5
|
|
|
* This file is licensed under the Affero General Public License version 3 or |
6
|
|
|
* later. See the COPYING file. |
7
|
|
|
* |
8
|
|
|
* @author Maxence Lange <[email protected]> |
9
|
|
|
* @copyright 2018 |
10
|
|
|
* @license GNU AGPL version 3 or any later version |
11
|
|
|
* |
12
|
|
|
* This program is free software: you can redistribute it and/or modify |
13
|
|
|
* it under the terms of the GNU Affero General Public License as |
14
|
|
|
* published by the Free Software Foundation, either version 3 of the |
15
|
|
|
* License, or (at your option) any later version. |
16
|
|
|
* |
17
|
|
|
* This program is distributed in the hope that it will be useful, |
18
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
19
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20
|
|
|
* GNU Affero General Public License for more details. |
21
|
|
|
* |
22
|
|
|
* You should have received a copy of the GNU Affero General Public License |
23
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
24
|
|
|
* |
25
|
|
|
*/ |
26
|
|
|
|
27
|
|
|
|
28
|
|
|
namespace OCA\FullTextSearch\Model; |
29
|
|
|
|
30
|
|
|
use OC\Core\Command\Base; |
31
|
|
|
use OCA\FullTextSearch\Exceptions\InterruptException; |
32
|
|
|
use Symfony\Component\Console\Output\OutputInterface; |
33
|
|
|
|
34
|
|
|
|
35
|
|
|
class ExtendedBase extends Base { |
36
|
|
|
|
37
|
|
|
/** @var OutputInterface */ |
38
|
|
|
private $output; |
|
|
|
|
39
|
|
|
|
40
|
|
|
public function __construct() { |
41
|
|
|
parent::__construct(); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @return bool|void |
47
|
|
|
* @throws InterruptException |
48
|
|
|
*/ |
49
|
|
|
public function hasBeenInterrupted() { |
50
|
|
|
if (parent::hasBeenInterrupted()) { |
51
|
|
|
throw new InterruptException('Interrupted by user.'); |
52
|
|
|
} |
53
|
|
|
} |
54
|
|
|
// |
55
|
|
|
// |
56
|
|
|
// /** |
57
|
|
|
// * @param OutputInterface $output |
58
|
|
|
// * |
59
|
|
|
// * @deprecated |
60
|
|
|
// */ |
61
|
|
|
// public function setOutput(OutputInterface $output) { |
62
|
|
|
// $this->output = $output; |
63
|
|
|
// } |
64
|
|
|
// |
65
|
|
|
// /** |
66
|
|
|
// * @return OutputInterface |
67
|
|
|
// * @deprecated |
68
|
|
|
// */ |
69
|
|
|
// public function getOutput() { |
70
|
|
|
// return $this->output; |
71
|
|
|
// } |
72
|
|
|
} |
This check marks private properties in classes that are never used. Those properties can be removed.