From 1b4d8024344f4442d44221b7b9a514ca0939b551 Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Wed, 16 Nov 2016 17:20:20 +0100 Subject: [PATCH] [FormatInterface] Implement functions in the template --- FormatInterface.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/FormatInterface.md b/FormatInterface.md index 53ed3c6..0fe538c 100644 --- a/FormatInterface.md +++ b/FormatInterface.md @@ -91,6 +91,10 @@ This is a bare minimum template for a format: ```PHP items = $items; return $this; } public function getItems(){ - // Implement your code here! - return array(); // Return original items + return $this->items; } public function setCharset($charset){ - // Implement your code here! + $this->charset = $charset; return $this; } public function getCharset(){ - // Implement your code here! - return ''; // Return the charset! + return $this->charset; } public function setExtraInfos(array $infos){ - // Implement your code here! + $this->extraInfos = $infos; return $this; } public function getExtraInfos(){ - // Implement your code here! - return array(); // Return the original infos! + return $this->extraInfos; } } // Imaginary empty line!