CacheTrait.php 310 B

123456789101112131415161718192021
  1. <?php
  2. namespace WeWork\Traits;
  3. use Psr\SimpleCache\CacheInterface;
  4. trait CacheTrait
  5. {
  6. /**
  7. * @var CacheInterface
  8. */
  9. protected $cache;
  10. /**
  11. * @param CacheInterface $cache
  12. */
  13. public function setCache(CacheInterface $cache): void
  14. {
  15. $this->cache = $cache;
  16. }
  17. }