protected function encodePriority($facility, $priority)
    {
        if (is_string($facility)) {
            $facility = static::$facilityNames[$facility];
        }
        if (is_string($priority)) {
            $priority = static::$priorityNames[$priority];
        }
        return ($facility << 3) | $priority;
    }
protected function encodePriority($facility, $priority)
    {
        if (is_string($facility)) {
            $facility = static::$facilityNames[$facility];
        }
        if (is_string($priority)) {
            $priority = static::$priorityNames[$priority];
        }
        return ($facility << 3) | $priority;
    }
protected function encodePriority ( $ facility , $ priority ) { if ( is_string ( $ facility ) ) { $ facility = static :: $ facilityNames [ $ facility ] ; } if ( is_string ( $ priority ) ) { $ priority = static :: $ priorityNames [ $ priority ] ; } return ( $ facility << 3 ) | $ priority ; }
Encode facility & priority information.

\param int|string $facility
The facility.

\param int|string $priority
The priority.

\retval int
The facility & priority, combined
in a single integer.
Encode facility & priority information .