3
I don’t know if it’s possible, but I’d like to do as I do in java
the following code in PHP
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;
}
In the PHP
I can’t put in a class
in PHP
class Not_req {
private Cabacelho_Req $cab;
private Requisicao $req;
}
In PHP this is wrong. How to solve this?
I get it. Thank you.
– Alysson