adding initial code to support marking items as unplayed via state:import

This commit is contained in:
Abdulmhsen B. A. A
2022-05-23 08:41:59 +03:00
parent 75a00d4ae9
commit d02efab94b
8 changed files with 136 additions and 160 deletions

View File

@@ -263,6 +263,24 @@ final class StateEntity implements iFace
return $this->tainted;
}
public function getMetadata(string|null $via = null): array
{
if (null === $via) {
return $this->metadata;
}
return $this->metadata[$via] ?? [];
}
public function getExtra(string|null $via = null): array
{
if (null === $via) {
return $this->extra;
}
return $this->extra[$via] ?? [];
}
private function isEqual(iFace $entity): bool
{
foreach (iFace::ENTITY_KEYS as $key) {