Implementation of the queue data structure using PHP class