Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
catalog
/
vendor
/
tedivm
/
stash
/
tests
/
Stash
/
Test
/
Stubs
/
File Content:
PoolGetDriverStub.php
<?php /* * This file is part of the Stash package. * * (c) Robert Hafner <tedivm@tedivm.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PleskCatalog\Stash\Test\Stubs; use Psr\Cache\CacheItemInterface; use PleskCatalog\Stash\Interfaces\PoolInterface; use PleskCatalog\Stash\Item; /** * * * @package Stash * @author Robert Hafner <tedivm@tedivm.com> */ class PoolGetDriverStub implements PoolInterface { protected $driver; public function setDriver(\PleskCatalog\Stash\Interfaces\DriverInterface $driver) : void { $this->driver = $driver; } public function getDriver() : \PleskCatalog\Stash\Interfaces\DriverInterface { return $this->driver; } public function setItemClass(string $class) : bool { return \true; } public function getItem(string $key) : CacheItemInterface { return new Item(); } public function getItems(array $keys = array()) : iterable { return []; } public function clear() : bool { return \false; } public function purge() : bool { return \false; } public function setNamespace(?string $namespace = null) : bool { return \false; } public function getNamespace() : bool|string { return \false; } public function setLogger($logger) : bool { return \false; } public function setInvalidationMethod($invalidation, $arg = null, $arg2 = null) : bool { return \false; } public function hasItem($key) : bool { return \false; } public function commit() : bool { return \false; } public function saveDeferred(CacheItemInterface $item) : bool { return \false; } public function save(CacheItemInterface $item) : bool { return \false; } public function deleteItems(array $keys) : bool { return \false; } public function deleteItem($key) : bool { return \false; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
DriverCallCheckStub.php
1384 bytes
0644
DriverExceptionStub.php
1560 bytes
0644
DriverUnavailableStub.php
1514 bytes
0644
LoggerStub.php
1821 bytes
0644
PoolGetDriverStub.php
2124 bytes
0644
N4ST4R_ID | Naxtarrr