data); } /** * Returns the contents of storage * Behavior is undefined when storage is empty. * * @return mixed */ public function read() { return $this->data; } /** * Writes $contents to storage * * @param mixed $contents * @return void */ public function write($contents) { $this->data = $contents; } /** * Clears contents from storage * * @return void */ public function clear() { $this->data = null; } }