| Total Complexity | 6 | 
| Total Lines | 58 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | class MappedLinkedListIterator implements Iterator | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * @var MappedLinkedList iterator owner | ||
| 14 | */ | ||
| 15 | protected MappedLinkedList $owner; | ||
| 16 | /** | ||
| 17 | * @var LinkedListItem|null current position | ||
| 18 | */ | ||
| 19 | protected ?LinkedListItem $position = null; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * LinkedListIterator constructor. | ||
| 23 | * @param MappedLinkedList $owner iterator owner | ||
| 24 | */ | ||
| 25 | public function __construct(MappedLinkedList $owner) | ||
| 26 |     { | ||
| 27 | $this->owner = $owner; | ||
| 28 | } | ||
| 29 | |||
| 30 | /** | ||
| 31 | * @inheritDoc | ||
| 32 | */ | ||
| 33 | public function current() | ||
| 34 |     { | ||
| 35 | return $this->position->getData(); | ||
|  | |||
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 | * @inheritDoc | ||
| 40 | */ | ||
| 41 | public function next(): void | ||
| 42 |     { | ||
| 43 | $this->position = $this->position->getNext(); | ||
| 44 | } | ||
| 45 | |||
| 46 | /** | ||
| 47 | * @inheritDoc | ||
| 48 | */ | ||
| 49 | public function key(): string | ||
| 50 |     { | ||
| 51 | return $this->position->getExtra(); | ||
| 52 | } | ||
| 53 | |||
| 54 | /** | ||
| 55 | * @inheritDoc | ||
| 56 | */ | ||
| 57 | public function valid(): bool | ||
| 58 |     { | ||
| 59 | return $this->position !== null; | ||
| 60 | } | ||
| 61 | |||
| 62 | /** | ||
| 63 | * @inheritDoc | ||
| 64 | */ | ||
| 65 | public function rewind(): void | ||
| 68 | } | ||
| 69 | } | ||
| 70 | 
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.