. */ namespace SP\Storage\File; /** * Interface StorageInterface * * @package SP\Storage */ interface XmlFileStorageInterface { /** * @param string $node * * @return XmlFileStorageInterface * @throws FileException */ public function load(string $node = ''): XmlFileStorageInterface; /** * @param mixed $data Data to be saved * @param string $node * * @return XmlFileStorageInterface * @throws FileException */ public function save($data, string $node = ''): XmlFileStorageInterface; /** * @return mixed */ public function getItems(); /** * Returns the given path node value * * @param $path * * @return string * @throws FileException */ public function getPathValue(string $path): string; /** * @return FileHandler */ public function getFileHandler(): FileHandler; }