toArray(); } else { throw new Exception\InvalidArgumentException('PartialLoop helper requires iterable data'); } } // reset the counter if it's called again $this->partialCounter = 0; $content = ''; foreach ($values as $item) { $this->partialCounter++; $content .= parent::__invoke($name, $item); } return $content; } /** * Get the partial counter * * @return int */ public function getPartialCounter() { return $this->partialCounter; } }