for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* This file is part of Phpfastcache.
* @license MIT License (MIT)
* For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
* @author Georges.L (Geolim4) <[email protected]>
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
*/
declare(strict_types=1);
namespace Phpfastcache\Drivers\Firestore;
use Phpfastcache\Config\ConfigurationOption;
use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
use Phpfastcache\Exceptions\PhpfastcacheLogicException;
* @see https://github.com/arangodb/arangodb-php/blob/devel/examples/init.php
* @SuppressWarnings(PHPMD.TooManyFields)
class Config extends ConfigurationOption
{
protected string $collection;
protected string $partitionKey = ExtendedCacheItemPoolInterface::DRIVER_KEY_WRAPPER_INDEX;
* @return string
public function getCollection(): string
return $this->collection;
}
* @param string $collection
* @return Config
* @throws PhpfastcacheLogicException
public function setCollection(string $collection): Config
$this->enforceLockedProperty(__FUNCTION__);
$this->collection = $collection;
return $this;