public moveToNewParent ( ) : void | ||
return | void |
public function moveToNewParent()
{
$pid = static::$moveToNewParentId;
if (is_null($pid)) {
$this->makeRoot();
} elseif ($pid !== false) {
$this->makeChildOf($pid);
}
}