Within a class definition, you do not know under which name the object will be accessible in your program: at the time the Cart class was written, it was unknown that the object will be named $cart or $another_cart later.
A l'intérieur d'une définition de classe, vous ne savez pas le nom de la variable à partir duquel l 'objet sera accessible dans le script.