+ /**
+ * Checks whether this node accepts announcements
+ *
+ * @return $acceptsAnnouncements Whether this node accepts announcements
+ */
+ public final function isAcceptingAnnouncements () {
+ // Check it (this node must be active and not shutdown!)
+ $acceptsAnnouncements = (($this->acceptsAnnouncements === true) && ($this->isNodeActive()());
+
+ // Return it
+ return $acceptsAnnouncements;
+ }
+
+ /**
+ * Enables whether this node accepts announcements
+ *
+ * @param $acceptsAnnouncements Whether this node accepts announcements (default: true)
+ * @return void
+ */
+ protected final function enableAcceptingAnnouncements ($acceptsAnnouncements = true) {
+ $this->acceptAnnouncements = $acceptsAnnouncements;
+ }
+
+