/** * @param $col * @param $row * @param $val * @return Node */ public static function factory($col, $row, $val) { $node = new self(); $node->setCol($col); $node->setRow($row); $node->setVal($val); return $node; }