/** * Register a restriction under a particular index * * @static * * @param mixed $index The index object for the restriction * @param Falcraft\Data\Types\Restrictions The actual construction predicate * * @return bool True on success, False on failure * */ public static function registerRestriction($index, Restrictions $restrictions) { if (self::$registry === null) { self::$registry = new Map(); self::initRegistry(); } return self::$registry->set($index, $restrictions); }
/** * Associate a given filter, in the map, with a given priority queue * * @param Falcraft\Event\Resource\Filter $filter The filter to set * @param Falcraft\Event\Resource\HandlerPriorityQueue $queue The given queue to be used * */ public function setFilter(EventResource\FilterInterface $filter, EventResource\HandlerPriorityQueue $queue) { $this->conduit->set($filter, $queue); }