fix: Make noteInfo interacting AnkiService methods private
This commit is contained in:
parent
e8fefa064f
commit
a0beb36a01
|
@ -41,7 +41,7 @@ class AnkiService
|
||||||
/** Give an array of IDs, the note Infos are returned. if info for a given
|
/** Give an array of IDs, the note Infos are returned. if info for a given
|
||||||
* doesn't exist, it is assigned to null instead of the default [].
|
* doesn't exist, it is assigned to null instead of the default [].
|
||||||
*/
|
*/
|
||||||
public function getNotesInfo(array $noteIds): array
|
private function getNotesInfo(array $noteIds): array
|
||||||
{
|
{
|
||||||
$noteInfos = $this->request('notesInfo', ['notes' => $noteIds]);
|
$noteInfos = $this->request('notesInfo', ['notes' => $noteIds]);
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class AnkiService
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns info form note given an ID, returns null if it doesn't exist */
|
/** Returns info form note given an ID, returns null if it doesn't exist */
|
||||||
public function getNoteInfo(int $noteId): ?array
|
private function getNoteInfo(int $noteId): ?array
|
||||||
{
|
{
|
||||||
return $this->getNotesInfo([$noteId])[0];
|
return $this->getNotesInfo([$noteId])[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue