/** * Get all created backups. * * @return array<\phpbu\App\Backup\File> */ public function getBackupFiles() { if (null === $this->files) { $this->files = array(); // collect all matching backup files $this->collect($this->target->getPathThatIsNotChanging(), 0); } return $this->files; }