1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Is possible to define a typedef for complex and composite datatypes in PHP or Laravel?

Discussão em 'Outras Linguagens' iniciado por Kareem Mohamed, Outubro 25, 2024 às 09:42.

  1. Is there a way to define a special type just a placeholder for complex return data types?


    Builder|Payment|Model Can I define a typedef for this? PaymentBuilder => Builder|Payment|Model

    And return the new datatype for the methods in certain class.

    Is that possible?

    I am trying to create a user-defined typedef in PHP.

    I expect to use this typedef in class files instead of the actual composite datatypes - to be returned for example.

    I can't do this right now :(

    Continue reading...

Compartilhe esta Página