Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
updating code docs to use Page interface instead of BasePage
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jan 22, 2016
1 parent ba88c9f commit 71e266b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/CrudKit/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace CrudKit\Controllers;

use CrudKit\CrudKitApp;
use CrudKit\Pages\BasePage;
use CrudKit\Pages\Page;
use CrudKit\Util\FlashBag;
use CrudKit\Util\TwigUtil;
use CrudKit\Util\ValueBag;
Expand All @@ -29,7 +29,7 @@ class BaseController {
protected $twig = null;

/**
* @var BasePage
* @var Page
*/
protected $page = null;

Expand Down Expand Up @@ -94,7 +94,7 @@ public function handle () {
break;
case "transclude":
$pageMap = [];
/** @var BasePage $pageItem */
/** @var Page $pageItem */
foreach($this->app->getPages() as $pageItem) {
$pageMap []= array(
'id' => $pageItem->getId(),
Expand Down
6 changes: 3 additions & 3 deletions src/CrudKit/CrudKitApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace CrudKit;

use CrudKit\Controllers\MainController;
use CrudKit\Pages\BasePage;
use CrudKit\Pages\Page;
use CrudKit\Util\TwigUtil;
use Twig_Autoloader;
use Twig_Environment;
Expand Down Expand Up @@ -56,7 +56,7 @@ public function useLogin ($login) {
}

/**
* @param $page BasePage
* @param $page Page
*/
public function addPage ($page) {
$this->pages []= $page;
Expand Down Expand Up @@ -110,7 +110,7 @@ public function renderToString () {

/**
* @param $id
* @return BasePage
* @return Page
*/
public function getPageById ($id) {
if(isset($this->pageById[$id])) {
Expand Down

0 comments on commit 71e266b

Please sign in to comment.