code: public function getAll(): array
      {
          $data = [];
          $file = $this->getDatabase()->readFromFile();
  
          foreach ($file as $line) {
              /** @var Line $line */
              $data[$line->getKey()] = $this->decodeData($line->getData());
          }
  
          return $data;
      }
docs: Get all data from the database.
  
  @return array