Skip to content

Commit

Permalink
Add missing doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 20, 2013
1 parent 38e7469 commit d1f06dd
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions Cake/ORM/TableRegistry.php
@@ -1,4 +1,19 @@
<?php
/**
* PHP Version 5.4
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\ORM;

use Cake\Core\App;
Expand All @@ -12,8 +27,18 @@
*/
class TableRegistry {

/**
* Configuration for aliases.
*
* @var array
*/
protected static $_config = [];

/**
* Instances that belong to the registry.
*
* @var array
*/
protected static $_instances = [];

/**
Expand Down Expand Up @@ -88,10 +113,13 @@ public static function get($alias, $options = []) {
}

/**
* Set an instance, this should be temporary.
* Set an instance.
*
* @param string $alias The alias to set.
* @param Cake\ORM\Table The table to set.
* @return void
*/
public static function set($alias, $object) {
public static function set($alias, Table $object) {
return static::$_instances[$alias] = $object;
}

Expand Down

0 comments on commit d1f06dd

Please sign in to comment.