| 1 | <?php |
||
| 9 | abstract class AbstractStack extends DataDoubleLinkedList implements StackInterface |
||
| 10 | { |
||
| 11 | use CollectionMethods; |
||
| 12 | |||
| 13 | use DequeCommonMethods { |
||
| 14 | addLast as private; // not really needed |
||
| 15 | addFirst as private; // used in add |
||
| 16 | offerLast as private; // not really needed |
||
| 17 | offerFirst as offer; |
||
| 18 | getFirst as element; |
||
| 19 | peekFirst as peek; |
||
| 20 | removeFirst as remove; |
||
| 21 | pollFirst as poll; |
||
| 22 | } |
||
| 23 | |||
| 24 | 6 | public function add($element) |
|
| 29 | |||
| 30 | 1 | protected function containerInternalName() |
|
| 34 | } |
||
| 35 |