Primitive Obsession¶
Primitive Obsession a biais in the way the code is written. It happens when the code uses too many primitive types, even to represent complex concepts.
<?php
class Person
{
public string $id;
public string $firstName;
public string $lastName;
public string $address;
public string $postCode;
public string $city;
public string $country;
}
?>
See also Primitive Obsession
Related : Scalar Types