for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Psr7Middlewares\Utils;
/**
* Utilities used by middlewares with storage options.
*/
trait StorageTrait
{
private $storage;
* Constructor. Set the storage option.
*
* @param string $storage
public function __construct($storage = '')
$this->storage($storage);
}
* Configure the storage.
* @return self
public function storage($storage)
$this->storage = $storage;
return $this;