PHP Classes

File: wiki/export/modifiers.md

Recommend this page to a friend!
  Classes of Tomáš Vojík   PHP Tournament Bracket Generator   wiki/export/modifiers.md   Download  
File: wiki/export/modifiers.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Tournament Bracket Generator
Organize the matches of teams in a tournament
Author: By
Last change:
Date: 6 hours ago
Size: 801 bytes
 

Contents

Class file image Download

Export modifiers

Modifiers are used to extend or control the exported data.

All modifiers must implement the \TournamentGenerator\Export\Modifiers\Modifier interface.

Available modifiers

There is currently only one modifier.

WithScoresModifier

This modifier adds team's scores to the exported data.

Available exporters:

  • `\TournamentGenerator\Export\Hierarchy\TeamsExporter`
  • `\TournamentGenerator\Export\Single\TeamExporter`
Example

use TournamentGenerator\Export\Single\TeamExporter;
use TournamentGenerator\Export\Hierarchy\TeamsExporter;
use TournamentGenerator\Group;
use TournamentGenerator\Team;

/ @var Team $team */
/ @var Group $group */

TeamExporter::start($team)->withScores()->get();
TeamsExporter::start($group)->withScores()->get();