public function setPriority($p)
    {
        $this->priority = $p;
        if ($this->ev !== null) {
            $this->ev->priority = $p;
        }
    }
public function setPriority($p)
    {
        $this->priority = $p;
        if ($this->ev !== null) {
            $this->ev->priority = $p;
        }
    }
public function setPriority ( $ p ) { $ this -> priority = $ p ; if ( $ this -> ev !== null ) { $ this -> ev -> priority = $ p ; } }
Sets the priority
@param integer Priority
@return void
Sets the priority