The evolution of PHP objects over the years

This is just a fun little post I wrote as I wanted to visualize how my data transfer objects have evolved over the years.

# August 2014: PHP 5.6

Let’s start with PHP 5.6, which is what most people without modern PHP knowledge might think PHP code still looks like. I’ll just give you the code and I’ll mention the changes in future versions.

 class BlogData { /** @var string */ private $title ; /** @var State */ private $state ; /** @var \DateTimeImmutable | null */

The post Evolution of PHP Objects over the Years first appeared on Lenix Blog .

This article is reprinted from https://blog.p2hp.com/archives/9110
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment