priority = $priority; $this->operator = $operator === null ? '<=' : $operator; } /** * Returns TRUE to accept the message, FALSE to block it. * * @param array $event event data * @return bool accepted? */ public function filter(array $event) { return version_compare($event['priority'], $this->priority, $this->operator); } }