public function __construct($key, \Newscoop\Storage $storage) { $this->key = (string) $key; if (empty($key)) { throw new \InvalidArgumentException($key); } $this->storage = $storage; }