Skip to content

Commit

Permalink
Cleaning and adding comments to RootNode
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkamp committed May 27, 2012
1 parent a6ddec0 commit f155fd8
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/Structr/Tree/RootNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,29 @@

class RootNode extends Base\PrototypeNode
{
/** @var mixed Value to Structrize */
/**
* @var mixed Value to Structrize
*/
private $_value;

public function __construct($value) {
/**
* Create a new root node
*
* @param type $value Default value to check. Can be overriden by supplying
* a value to the run() method of \Sturctr\Tree\Node::run() if needed
*/
public function __construct($value)
{
$this->_value = $value;
}

public function getValue() {
/**
* Get the default value to check
*
* @return type The default value to check, supplied at object create time
*/
public function getValue()
{
return $this->_value;
}
}

0 comments on commit f155fd8

Please sign in to comment.