From ba67f711bb393da37936dd456bd8cc8217045383 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 5 Jun 2019 15:49:34 +0200 Subject: [PATCH] Created e. Reader boilerplate (markdown) --- e.-Reader-boilerplate.md | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 e.-Reader-boilerplate.md diff --git a/e.-Reader-boilerplate.md b/e.-Reader-boilerplate.md new file mode 100644 index 0000000..e84f395 --- /dev/null +++ b/e.-Reader-boilerplate.md @@ -0,0 +1,43 @@ +```php +Tournament; + } + + /** + * @param Tournament $Tournament + */ + public function setTournament(Tournament $Tournament) + { + $this->Tournament = $Tournament; + } + + public function read($filename): ReaderInterface + { + $tournament = new Tournament(); + // Reading out of fields + $this->setTournament($tournament); + } +} + +``` \ No newline at end of file