/** * Constructs an LeftistHeap. * * @param mixed $key A key. (Optional). */ public function __construct($key = NULL) { if ($key === NULL) { parent::__construct(NULL, NULL, NULL); $this->nullPathLength = 0; } else { parent::__construct($key, new LeftistHeap(), new LeftistHeap()); $this->nullPathLength = 1; } }
public function __construct() { parent::__construct(NULL, NULL, NULL); }
/** * Constructs a ExpressionTree that consists * of a single (leaf) node with the specified label. * * @param string $c The label on this node. */ public function __construct($c) { parent::__construct(new BoxedString($c)); }