How to type an Instance of objects in PHP? [duplicate]

0

I would like to know, if possible, typing an instance, a declaration, or prototype of a function.

cadastrarPessoa(Pessoa p);

or even in the scope of a function:

public function criarPessoa() {
    Pessoa p = new Pessoa();
    ...
}
    
asked by anonymous 23.05.2018 / 18:28

0 answers