public static function lastFindIndex($index = null) { if ($index !== null) { static::$_index = $index; } return static::$_index; }
/** * Resolves the matching. * * @return boolean Returns `true` if successfully resolved, `false` otherwise. */ public function resolve() { $startIndex = $this->_ordered ? Calls::lastFindIndex() : 0; $report = Calls::find($this->_message, $startIndex, $this->times()); $this->_report = $report; $this->_buildDescription($startIndex); return $report['success']; }