Skip to content

Commit

Permalink
Updated PhpDocs for Plugin::__construct(), View::__construct(), View:…
Browse files Browse the repository at this point in the history
…:get() and View::render()
  • Loading branch information
joechilds committed Jun 18, 2013
1 parent da93023 commit effd5c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Swiftlet/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ abstract class Plugin implements Interfaces\Plugin

/**
* Constructor
* @param object $app
* @param object $view
* @param object $controller
* @param Interfaces\App $app
* @param Interfaces\View $view
* @param Interfaces\Controller $controller
*/
public function __construct(Interfaces\App $app, Interfaces\View $view, Interfaces\Controller $controller)
{
Expand Down
12 changes: 7 additions & 5 deletions Swiftlet/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class View implements Interfaces\View

/**
* Constructor
* @param object $app
* @param Interfaces\App $app
* @param string $name
*/
public function __construct(Interfaces\App $app, $name)
Expand All @@ -28,11 +28,11 @@ public function __construct(Interfaces\App $app, $name)

/**
* Get a view variable
* @params string $variable
* @params bool $htmlEncode
* @return mixed
* @param string $variable
* @param bool $htmlEncode
* @return mixed|null
*/
public function get($variable, $htmlEncode = true)
public function get($variable, $htmlEncode = true)
{
if ( isset($this->variables[$variable]) ) {
if ( $htmlEncode ) {
Expand Down Expand Up @@ -131,6 +131,8 @@ public function htmlDecode($value)

/**
* Render the view
*
* @throws \Exception
*/
public function render()
{
Expand Down

0 comments on commit effd5c5

Please sign in to comment.