DiscordPHP-NHA Documentation

Deprecated

Table of Contents

src/NHA/Repository/AbstractRepositoryTrait.php

AbstractRepositoryTrait.php

Line Element Reason
188 AbstractRepositoryTrait::save()

Use Part->save($reason) to ensure permissions are checked.

443 AbstractRepositoryTrait::pull()

Use async $repository->cachePull()

479 AbstractRepositoryTrait::pushItem()

Use async $repository->cache->set() This method is deprecated for userland code but can still be used internally within the library.

547 AbstractRepositoryTrait::has()

Use async $repository->cache->has()

621 AbstractRepositoryTrait::clear()

Use async $repository->cache->clear()

634 AbstractRepositoryTrait::toArray()

Use jsonSerialize

669 AbstractRepositoryTrait::offsetExists()

Use async $repository->cache->has() This method is deprecated for userland code but can still be used internally within the library.

684 AbstractRepositoryTrait::offsetGet()

Use async $repository->cacheGet() or sync $repository->get() This method is deprecated for userland code but can still be used internally within the library.

707 AbstractRepositoryTrait::offsetSet()

Use async $repository->cache->set()

719 AbstractRepositoryTrait::offsetUnset()

Use async $repository->cache->delete()

Search results