public function map(array $parts): array
    {
        if (!$this->matchSinglePart && count($parts) < 2) {
            return $parts;
        }

        return $this->mapParts($parts);
    }
public function map(array $parts): array
    {
        if (!$this->matchSinglePart && count($parts) < 2) {
            return $parts;
        }

        return $this->mapParts($parts);
    }
public function map ( array $ parts ) : array { if ( ! $ this -> matchSinglePart && count ( $ parts ) < 2 ) { return $ parts ; } return $ this -> mapParts ( $ parts ) ; }
map lastnames in the parts array

@param array $parts the name parts
@return array the mapped parts
map lastnames in the parts array