src/main/php/Invocations.php
public function argumentsOf(int $invocation = 1): array
    {
        if (isset($this->callHistory[$invocation - 1])) {
            return $this->callHistory[$invocation - 1];
        }

        $totalInvocations = $this->count();
        throw new MissingInvocation(sprintf(
                'Missing invocation #%d for %s, was %s.',
                $invocation,
                $this->name,
                ($totalInvocations === 0 ?
                        'never called' :
                        ('only called ' . ($totalInvocations === 1 ?
                            'once' : $totalInvocations . ' times')
                        )
                )
        ));
    }
public function argumentsOf(int $invocation = 1): array
    {
        if (isset($this->callHistory[$invocation - 1])) {
            return $this->callHistory[$invocation - 1];
        }

        $totalInvocations = $this->count();
        throw new MissingInvocation(sprintf(
                'Missing invocation #%d for %s, was %s.',
                $invocation,
                $this->name,
                ($totalInvocations === 0 ?
                        'never called' :
                        ('only called ' . ($totalInvocations === 1 ?
                            'once' : $totalInvocations . ' times')
                        )
                )
        ));
    }
public function argumentsOf ( int $ invocation = 1 ) : array { if ( isset ( $ this -> callHistory [ $ invocation - 1 ] ) ) { return $ this -> callHistory [ $ invocation - 1 ] ; } $ totalInvocations = $ this -> count ( ) ; throw new MissingInvocation ( sprintf ( 'Missing invocation #%d for %s, was %s.' , $ invocation , $ this -> name , ( $ totalInvocations === 0 ? 'never called' : ( 'only called ' . ( $ totalInvocations === 1 ? 'once' : $ totalInvocations . ' times' ) ) ) ) ) ; }
returns the arguments received for a specific invocation

@param   int     $invocation  nth invocation to check, defaults to 1 aka first invocation
@return  mixed[]
@throws  \bovigo\callmap\MissingInvocation  in case no such invocation was received
returns the arguments received for a specific invocation