Skip to content
Permalink
Browse files

Add abstract method SerializedView::_serialized().

  • Loading branch information...
ADmad committed Dec 14, 2016
1 parent b69b189 commit 6944fab09de3cb73ce0f1ba1447c78abadba932b
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/View/SerializedView.php
@@ -22,7 +22,7 @@
/**
* Parent class for view classes generating serialized outputs like JsonView and XmlView.
*/
class SerializedView extends View
abstract class SerializedView extends View
{
/**
@@ -65,6 +65,15 @@ public function loadHelpers()
}
}
/**
* Serialize view vars.
*
* @param array|string $serialize The name(s) of the view variable(s) that
* need(s) to be serialized
* @return string The serialized data
*/
abstract protected function _serialize($serialize);
/**
* Render view template or return serialized data.
*

0 comments on commit 6944fab

Please sign in to comment.
You can’t perform that action at this time.