refactor: cosmetic
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -21,9 +21,6 @@ use KTXM\ProviderJmapc\Service\Discovery;
|
|||||||
use KTXM\ProviderJmapc\Service\Remote\RemoteService;
|
use KTXM\ProviderJmapc\Service\Remote\RemoteService;
|
||||||
use KTXM\ProviderJmapc\Stores\ServiceStore;
|
use KTXM\ProviderJmapc\Stores\ServiceStore;
|
||||||
|
|
||||||
/**
|
|
||||||
* JMAP Mail Provider
|
|
||||||
*/
|
|
||||||
class Provider implements ProviderBaseInterface, ProviderServiceMutateInterface, ProviderServiceDiscoverInterface, ProviderServiceTestInterface
|
class Provider implements ProviderBaseInterface, ProviderServiceMutateInterface, ProviderServiceDiscoverInterface, ProviderServiceTestInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -394,13 +394,6 @@ class Service implements ServiceBaseInterface, ServiceMutableInterface, ServiceC
|
|||||||
return new Sort($this->serviceAbilities[self::CAPABILITY_COLLECTION_LIST_SORT] ?? []);
|
return new Sort($this->serviceAbilities[self::CAPABILITY_COLLECTION_LIST_SORT] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function collectionExtant(string|int ...$identifiers): array
|
|
||||||
{
|
|
||||||
$this->initialize();
|
|
||||||
|
|
||||||
return $this->mailService->collectionExtant(...$identifiers);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function collectionFetch(string|int $identifier): ?CollectionResource
|
public function collectionFetch(string|int $identifier): ?CollectionResource
|
||||||
{
|
{
|
||||||
$this->initialize();
|
$this->initialize();
|
||||||
@@ -417,6 +410,13 @@ class Service implements ServiceBaseInterface, ServiceMutableInterface, ServiceC
|
|||||||
return $collection;
|
return $collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function collectionExtant(string|int ...$identifiers): array
|
||||||
|
{
|
||||||
|
$this->initialize();
|
||||||
|
|
||||||
|
return $this->mailService->collectionExtant(...$identifiers);
|
||||||
|
}
|
||||||
|
|
||||||
public function collectionFresh(): CollectionResource
|
public function collectionFresh(): CollectionResource
|
||||||
{
|
{
|
||||||
return new CollectionResource($this->provider(), $this->identifier());
|
return new CollectionResource($this->provider(), $this->identifier());
|
||||||
|
|||||||
Reference in New Issue
Block a user