package co.inventorsoft.oop.basic.model;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

public class Passport {

    private String firstName;

    private String lastName;

    private LocalDateTime dateOfBirth;

    private BufferedImage photo;

    private String address;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public LocalDateTime getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(LocalDateTime dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public BufferedImage getPhoto() {
        return photo;
    }

    public void setPhoto(BufferedImage photo) {
        this.photo = photo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}

@@ -309,27 +309,39 @@
 lic 
+Passport(final 
 String 
-getF
+f
 irstName
 () %7B
@@ -340,94 +340,232 @@
 Name
-() %7B%0A        return fir
+,%0A                    final String la
 stName
-;
+,
 %0A    
-%7D%0A%0A    public void setFirstName(String firstName) %7B
+                final LocalDateTime dateOfBirth,%0A                    final BufferedImage photo,%0A                    final String address) %7B%0A        this.firstName = firstName;
 %0A   
@@ -566,35 +566,34 @@
 e;%0A        this.
-fir
+la
 stName = firstNa
@@ -581,33 +581,132 @@
 .lastName = 
-firstName
+lastName;%0A        this.dateOfBirth = dateOfBirth;%0A        this.photo = photo;%0A        this.address = address
 ;%0A    %7D%0A%0A   
@@ -723,18 +723,19 @@
 ring get
-La
+Fir
 stName()
@@ -752,18 +752,19 @@
  return 
-la
+fir
 stName;%0A
@@ -785,40 +785,27 @@
 lic 
-void setLastName(
 String 
-l
+getL
 astName
+(
 ) %7B%0A
@@ -808,39 +808,30 @@
 ) %7B%0A        
-this.lastName =
+return
  lastName;%0A 
@@ -930,137 +930,92 @@
 lic 
-void setDateOfBirth(LocalDateTime dateOfBirth) %7B%0A        this.dateOfBirth = dateOfBirth;%0A    %7D%0A%0A    public BufferedImage getPhoto
+BufferedImage getPhoto() %7B%0A        return photo;%0A    %7D%0A%0A    public String getAddress
 () %7B
@@ -1022,37 +1022,39 @@
 %0A        return 
-photo
+address
 ;%0A    %7D%0A%0A    pub
@@ -1133,72 +1133,8 @@
  %7D%0A%0A
-    public String getAddress() %7B%0A        return address;%0A    %7D%0A%0A
     

Remove illegal setters from Passport