Skip to content

Commit

Permalink
Fixed quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Jan 10, 2024
1 parent 4074dbb commit 31fe68a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/Phpfastcache/Extensions/Drivers/Ravendb/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

class Config extends ConfigurationOption
{
/**
* @var array<string>
*/
protected array $hosts = [];
protected string $username = '';
protected string $password = '';
Expand Down
3 changes: 0 additions & 3 deletions lib/Phpfastcache/Extensions/Drivers/Ravendb/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
namespace Phpfastcache\Extensions\Drivers\Ravendb;

use Phpfastcache\Cluster\AggregatablePoolInterface;
use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface;
use Phpfastcache\Core\Pool\TaggableCacheItemPoolTrait;
use Phpfastcache\Core\Item\ExtendedCacheItemInterface;
use Phpfastcache\Entities\DriverStatistic;
use Phpfastcache\Event\EventReferenceParameter;
use Phpfastcache\Exceptions\PhpfastcacheDriverConnectException;
use Phpfastcache\Exceptions\PhpfastcacheDriverException;
use Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException;
use Phpfastcache\Exceptions\PhpfastcacheLogicException;
use RavenDB\Documents\DocumentStore;
use RavenDB\Documents\Operations\DeleteByQueryOperation;
use RavenDB\Documents\Queries\IndexQuery;
Expand Down
1 change: 0 additions & 1 deletion lib/Phpfastcache/Extensions/Drivers/Ravendb/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

class Event extends \Phpfastcache\Event\Event
{

}
16 changes: 16 additions & 0 deletions lib/Phpfastcache/Extensions/Drivers/Ravendb/RavenProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@
use Phpfastcache\Core\Pool\TaggableCacheItemPoolInterface;
use Phpfastcache\Exceptions\PhpfastcacheInvalidArgumentException;

/**
* @internal
*/
class RavenProxy
{
protected ?string $key;

protected mixed $data;

/**
* @var array<string>
*/
protected array $tags = [];

protected \DateTimeInterface $expirationDate;
Expand Down Expand Up @@ -69,11 +75,18 @@ public function setData(mixed $data): self
return $this;
}

/**
* @return array<string>
*/
public function getTags(): array
{
return $this->tags;
}

/**
* @param array<string> $tags
* @return $this
*/
public function setTags(array $tags): self
{
$this->tags = $tags;
Expand Down Expand Up @@ -129,6 +142,9 @@ public function fromCacheItem(ExtendedCacheItemInterface $item): void
}
}

/**
* @return array<string, mixed>
*/
public function toDriverArray(): array
{
return [
Expand Down

0 comments on commit 31fe68a

Please sign in to comment.