diff --git a/NestedSet.php b/NestedSet.php index a831008..4babc93 100644 --- a/NestedSet.php +++ b/NestedSet.php @@ -23,20 +23,49 @@ class NestedSet extends Behavior * @var ActiveRecord the owner of this behavior. */ public $owner; + /** + * @var bool + */ public $hasManyRoots = false; + /** + * @var string + */ public $rootAttribute = 'root'; + /** + * @var string + */ public $leftAttribute = 'lft'; + /** + * @var string + */ public $rightAttribute = 'rgt'; + /** + * @var string + */ public $levelAttribute = 'level'; + /** + * @var bool + */ private $_ignoreEvent = false; + /** + * @var bool + */ private $_deleted = false; + /** + * @var int + */ private $_id; + /** + * @var array + */ private static $_cached; + /** + * @var int + */ private static $_c = 0; /** - * Declares event handlers for the [[owner]]'s events. - * @return array events (array keys) and the corresponding event handler methods (array values). + * @inheritdoc */ public function events() { @@ -49,7 +78,7 @@ class NestedSet extends Behavior } /** - * Initializes the object. + * @inheritdoc */ public function init() { diff --git a/NestedSetQuery.php b/NestedSetQuery.php index bd4bc24..913cf6d 100644 --- a/NestedSetQuery.php +++ b/NestedSetQuery.php @@ -20,10 +20,25 @@ class NestedSetQuery extends Behavior * @var ActiveQuery the owner of this behavior. */ public $owner; + /** + * @var bool + */ public $hasManyRoots = false; + /** + * @var string + */ public $rootAttribute = 'root'; + /** + * @var string + */ public $leftAttribute = 'lft'; + /** + * @var string + */ public $rightAttribute = 'rgt'; + /** + * @var string + */ public $levelAttribute = 'level'; /**