public function merge(array $policies) {
        $last = reset($policies);
        for($i = 1; $i < count($policies); ++$i) {
            if($policies[$i]->isPriorityGreaterThanOrEqualTo($last)) {
                $last = $policies[$i];
            }
        }
        return $last;
    }
public function merge(array $policies) {
        $last = reset($policies);
        for($i = 1; $i < count($policies); ++$i) {
            if($policies[$i]->isPriorityGreaterThanOrEqualTo($last)) {
                $last = $policies[$i];
            }
        }
        return $last;
    }
public function merge ( array $ policies ) { $ last = reset ( $ policies ) ; for ( $ i = 1 ; $ i < count ( $ policies ) ; ++ $ i ) { if ( $ policies [ $ i ] -> isPriorityGreaterThanOrEqualTo ( $ last ) ) { $ last = $ policies [ $ i ] ; } } return $ last ; }
Merges property list into priority one and returns it
@param array $policies list of policies to merge
@return Policy\Interfaces\Policy
Merges property list into priority one and returns it