What is an example of a Value Object in PHP?

后端 未结 2 1262
谎友^
谎友^ 2021-02-08 23:24

I have read plenty of C# examples of Value Objects, and I understand that it is an \"object\" that is identified by it\'s values. If a value changes, the object is \"new\".

2条回答
  •  孤城傲影
    2021-02-08 23:51

    PHP used to have value objects but that was back in PHP4. See http://3v4l.org/ghI8G

提交回复
热议问题