added isLocal method to GuidInterface to check whether the given guid local or not.

This commit is contained in:
Abdulmhsen B. A. A
2022-06-18 18:12:37 +03:00
parent c0b0ce242a
commit baf3c59aab
2 changed files with 14 additions and 0 deletions

View File

@@ -43,4 +43,13 @@ interface GuidInterface
* @return bool
*/
public function has(array $guids, array $context = []): bool;
/**
* Is the given identifier a local id?
*
* @param string $guid
*
* @return bool
*/
public function isLocal(string $guid): bool;
}

View File

@@ -55,6 +55,11 @@ class JellyfinGuid implements iGuid
return count($this->ListExternalIds(guids: $guids, context: $context, log: false)) >= 1;
}
public function isLocal(string $guid): bool
{
return false;
}
/**
* Get All Supported external ids.
*