for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_storage\Storage\Key;
use kalanis\kw_storage\Interfaces\IKey;
/**
* Class DirKey
* @package kalanis\kw_storage\Storage\Key
* The key is part of a directory path - fill it
*/
class DirKey implements IKey
{
/** @var string */
protected $path = '';
public function __construct(string $dir)
$this->path = $dir;
}
public function fromSharedKey(string $key): string
return $this->path . $key;