Kahlan\Plugin\Call\Calls::lastFindIndex PHP Метод

lastFindIndex() публичный статический Метод

Gets/sets the find index
public static lastFindIndex ( integer $index = null ) : integer
$index integer The index value to set or `null` to get the current one.
Результат integer Return founded log call.
    public static function lastFindIndex($index = null)
    {
        if ($index !== null) {
            static::$_index = $index;
        }
        return static::$_index;
    }

Usage Example

Пример #1
0
 /**
  * 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'];
 }
All Usage Examples Of Kahlan\Plugin\Call\Calls::lastFindIndex