|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/www/wp/wp-content/plugins/wordfence/vendor/wordfence/mmdb-reader/src/ | |
|
Path: //home2/gazetufm/www/wp/wp-content/plugins/wordfence/vendor/wordfence/mmdb-reader/src/Node.php
Size: 566 B
Permissions: 0644
<?php
namespace Wordfence\MmdbReader;
class Node {
const SIDE_LEFT = 0;
const SIDE_RIGHT = 1;
private $reader;
private $data;
private $left, $right;
public function __construct($reader, $data) {
$this->reader = $reader;
$this->data = $data;
}
public function getRecord($side) {
$value = $this->reader->extractRecord($this->data, $side);
return new NodeRecord($this->reader, $value);
}
public function getLeft() {
return $this->getRecord(self::SIDE_LEFT);
}
public function getRight() {
return $this->getRecord(self::SIDE_RIGHT);
}
}