Skip to content
Permalink
Browse files

Add missing doc blocks.

  • Loading branch information...
markstory committed Oct 8, 2013
1 parent 38e7469 commit d1f06ddade3891d70a843f02b24ecf3901f4669a
Showing with 30 additions and 2 deletions.
  1. +30 −2 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;
@@ -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 = [];
/**
@@ -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;
}

0 comments on commit d1f06dd

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