Classes for understanding the management of linked lists in PHP