var $depth;
private $volatile = false;
+ private $ttl = null;
/**
* @var array
function isVolatile() {
return $this->volatile;
}
+
+ /**
+ * Set the TTL
+ *
+ * @param int $ttl
+ */
+ function setTTL( $ttl ) {
+ if ( $ttl !== null && ( $this->ttl === null || $ttl < $this->ttl ) ) {
+ $this->ttl = $ttl;
+ }
+ }
+
+ /**
+ * Get the TTL
+ *
+ * @return int|null
+ */
+ function getTTL() {
+ return $this->ttl;
+ }
}
/**
parent::setVolatile( $flag );
$this->parent->setVolatile( $flag );
}
+
+ function setTTL( $ttl ) {
+ parent::setTTL( $ttl );
+ $this->parent->setTTL( $ttl );
+ }
}
/**