aboutsummaryrefslogtreecommitdiff
path: root/docs/08_Format_API/02_FormatInterface.md
diff options
context:
space:
mode:
authorGravatar Jan Tojnar <jtojnar@gmail.com> 2022-06-07 18:05:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-06-07 18:05:33 +0200
commitfb501652d5ef8519470fa1faa585b3668ebd2a34 (patch)
treea9603f0c09d6f4b710fbde1c10297330bac87ad1 /docs/08_Format_API/02_FormatInterface.md
parente85932b1a524f88db6af66d4c3aac3a7983c169b (diff)
downloadrss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.gz
rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.tar.zst
rss-bridge-fb501652d5ef8519470fa1faa585b3668ebd2a34.zip
Formats: Remove display & related method (#2776)
Format should not be responsible for sending HTTP response.
Diffstat (limited to 'docs/08_Format_API/02_FormatInterface.md')
-rw-r--r--docs/08_Format_API/02_FormatInterface.md14
1 files changed, 0 insertions, 14 deletions
diff --git a/docs/08_Format_API/02_FormatInterface.md b/docs/08_Format_API/02_FormatInterface.md
index 28ac60b3..88448c38 100644
--- a/docs/08_Format_API/02_FormatInterface.md
+++ b/docs/08_Format_API/02_FormatInterface.md
@@ -14,14 +14,6 @@ Find a [template](#template) at the end of this file
# Functions
-## The `display` function
-
-The `display` function shows the contents to the user and must return the object instance.
-
-```PHP
-display(): self
-```
-
## The `stringify` function
The `stringify` function returns the items received by [`setItems`](#the-setitem-function) as string.
@@ -109,12 +101,6 @@ class MyTypeFormat implements FormatInterface {
return ''; // Return items as string
}
- public function display(){
- // Implement your code here
- echo $this->stringify();
- return $this;
- }
-
public function setItems(array $items){
$this->items = $items;
return $this;