I do not know if it is possible, but I would like to do as%% with the following code in java
in JAVA
public class Not_req {
private Cabacelho_Req cab;
private Requisicao req;
public Cabacelho_Req getCab() {
return cab;
}
public void setCab(Cabacelho_Req cab) {
this.cab = cab;
}
No PHP
can not put in a class
in PHP
class Not_req {
private Cabacelho_Req $cab;
private Requisicao $req;
}
In PHP this goes wrong. How do I resolve this?