src/validators/MxValueValidator.php
public function extractPriority($model, $attribute)
    {
        $priorityAttribute = $this->priorityAttribute;
        preg_match($this->priorityExtractPattern, $model->$attribute, $matches);
        if ($matches[2] !== '') {
            $model->$priorityAttribute = $matches[2];
            $model->$attribute = $matches[3];
        }
    }
public function extractPriority($model, $attribute)
    {
        $priorityAttribute = $this->priorityAttribute;
        preg_match($this->priorityExtractPattern, $model->$attribute, $matches);
        if ($matches[2] !== '') {
            $model->$priorityAttribute = $matches[2];
            $model->$attribute = $matches[3];
        }
    }
public function extractPriority ( $ model , $ attribute ) { $ priorityAttribute = $ this -> priorityAttribute ; preg_match ( $ this -> priorityExtractPattern , $ model -> $ attribute , $ matches ) ; if ( $ matches [ 2 ] !== '' ) { $ model -> $ priorityAttribute = $ matches [ 2 ] ; $ model -> $ attribute = $ matches [ 3 ] ; } }
Extracts priority to separated model attribute.

@param $model Model
@param $attribute
Extracts priority to separated model attribute .