private function transfromArray($values)
    {
        if (count($values) > 1) {
            $encoded = array();
            foreach ($values as $value) {
                $encoded[] = $this->encodeValue($value);
            }
            return $encoded;
        } else {
            return $this->encodeValue(reset($values));
        }
    }
private function transfromArray($values)
    {
        if (count($values) > 1) {
            $encoded = array();
            foreach ($values as $value) {
                $encoded[] = $this->encodeValue($value);
            }
            return $encoded;
        } else {
            return $this->encodeValue(reset($values));
        }
    }
private function transfromArray ( $ values ) { if ( count ( $ values ) > 1 ) { $ encoded = array ( ) ; foreach ( $ values as $ value ) { $ encoded [ ] = $ this -> encodeValue ( $ value ) ; } return $ encoded ; } else { return $ this -> encodeValue ( reset ( $ values ) ) ; } }
Encode a values array

@param array $values
@return mixed
Encode a values array