code: public function readFromFile(): \Generator
      {
          $file = $this->openFile(static::FILE_READ);
  
          try {
              foreach ($file as $line) {
                  yield new Line($line);
              }
          } finally {
              $this->closeFile($file);
          }
      }
docs: Read lines from the database file.
  
  @return \Generator