1 | <?php declare(strict_types=1); |
||||
2 | |||||
3 | /** |
||||
4 | * ownCloud - Music app |
||||
5 | * |
||||
6 | * This file is licensed under the Affero General Public License version 3 or |
||||
7 | * later. See the COPYING file. |
||||
8 | * |
||||
9 | * @author Pauli Järvinen <[email protected]> |
||||
10 | * @copyright Pauli Järvinen 2018 - 2025 |
||||
11 | */ |
||||
12 | |||||
13 | namespace OCA\Music\Search; |
||||
14 | |||||
15 | /** |
||||
16 | * A found track/album/artist |
||||
17 | */ |
||||
18 | class Result extends \OCP\Search\Result { |
||||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||||
19 | public function __construct(int $id, string $name, string $link, string $type) { |
||||
20 | parent::__construct((string)$id, $name, $link); // TODO: base class doc says that $id should contain app name |
||||
0 ignored issues
–
show
The function
OCP\Search\Result::__construct() has been deprecated: 20.0.0
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
21 | $this->type = $type; // defined by the parent class |
||||
0 ignored issues
–
show
The property
OCP\Search\Result::$type has been deprecated: 20.0.0
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This property has been deprecated. The supplier of the class has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead. ![]() |
|||||
22 | } |
||||
23 | } |
||||
24 |