/** * Constructor. */ public function __construct() { parent::__construct(); }
public function __construct($debug = FALSE) { parent::__construct(); $this->size = 0; }
public function __construct() { parent::__construct('array_push', 'array_pop'); }
/** * Constructs a QueueAsArray with the given size. * * @param integer $size The size of this queue. */ public function __construct($size = 0) { parent::__construct(); $this->array = new BasicArray($size); $this->head = 0; $this->tail = $size - 1; }
/** * Constructs a QueueAsLinkedList. */ public function __construct() { parent::__construct(); $this->list = new LinkedList(); }