code: public function save($path, $fileName, array $data)
      {
          $file = $this->getFile($path, $fileName);
  
          $this->isExist($file);
          $this->isWrite($file);
  
          $fp = fopen($file, 'w');
          fwrite($fp, serialize($data));
  
          return fclose($fp);
      }
docs: {@inheritDoc}