drupal/cacheable_types

1.0.4 2023-08-02 22:49 UTC

This package is auto-updated.

Last update: 2024-11-10 21:44:43 UTC


README

Immutable classes and builders that make doing it wrong harder.

CacheableBool

# Never forget cacheability.
CacheableBool::create($bool, $cacheability)
$cacheableBool->value()
assert($cacheableBool instanceof CacheableDependencyInterface)
CacheableBool::ifAccessResultAllowed($accessResult)
CacheableBool::ifAccessResultNotForbidden($accessResult)
$cacheableBool->toAllowedOrNeutral()
$cacheableBool->toNeutralOrForbidden()
$cacheableBool->toAllowedOrForbidden()
CacheableBool::not()
CacheableBool::and(...$cacheableBoolItems)
CacheableBool::or(...$cacheableBoolItems)