Everzet\PersistedObjects\FileRepository::getAll PHP Метод

getAll() публичный Метод

public getAll ( )
    public function getAll()
    {
        return array_values($this->loadDb());
    }

Usage Example

 /** {@inheritdoc} */
 public function existsAlreadyGivenOfBook(UuidInterface $bookId)
 {
     /** @var Reservation $reservation */
     foreach ($this->file->getAll() as $reservation) {
         if ($reservation->bookId()->equals($bookId) && $reservation->isGivenAway()) {
             return true;
         }
     }
     return false;
 }
All Usage Examples Of Everzet\PersistedObjects\FileRepository::getAll