protected function checkPriority($event, $priority)
    {
        if (!is_int($priority)) {
            $message = 'Priority for event "%s" must be an integer, but received: %s';
            $this->addProblem(sprintf($message, $event, $this->exporter->export($priority)));
            return;
        }
    }
protected function checkPriority($event, $priority)
    {
        if (!is_int($priority)) {
            $message = 'Priority for event "%s" must be an integer, but received: %s';
            $this->addProblem(sprintf($message, $event, $this->exporter->export($priority)));
            return;
        }
    }
protected function checkPriority ( $ event , $ priority ) { if ( ! is_int ( $ priority ) ) { $ message = 'Priority for event "%s" must be an integer, but received: %s' ; $ this -> addProblem ( sprintf ( $ message , $ event , $ this -> exporter -> export ( $ priority ) ) ) ; return ; } }
Checks the given priority.

@param string $event
@param integer|mixed $priority
Checks the given priority .