public function __construct(Session $store, $key = null) { $this->store = $store; if (isset($key)) { $this->key = $key; } }