Пример #1
0
 /**
  * @param FileInterface $file
  * @param mixed         $content
  *
  * @return $this
  */
 public function writeContent(FileInterface $file, $content)
 {
     $this->setCallback(function () use($file, $content) {
         foreach ($content as $row) {
             $file->getWriter()->write($row);
         }
     });
     return $this;
 }