file-fetcher
Public Member Functions | List of all members
Prophecy\Argument\Token\InArrayToken Class Reference
Inheritance diagram for Prophecy\Argument\Token\InArrayToken:
Prophecy\Argument\Token\TokenInterface

Detailed Description

Check if values is in array

Author
Vinícius Alonso vba32.nosp@m.1@ho.nosp@m.tmail.nosp@m..com

Public Member Functions

 __construct (array $arguments, $strict=true)
 
 scoreArgument ($argument)
 
 isLast ()
 
 __toString ()
 

Constructor & Destructor Documentation

◆ __construct()

Prophecy\Argument\Token\InArrayToken::__construct ( array  $arguments,
  $strict = true 
)
Parameters
array$argumentstokens
bool$strict

Member Function Documentation

◆ __toString()

Prophecy\Argument\Token\InArrayToken::__toString ( )

Returns string representation for token.

Returns
string

Implements Prophecy\Argument\Token\TokenInterface.

◆ isLast()

Prophecy\Argument\Token\InArrayToken::isLast ( )

Returns false.

Returns
boolean

Implements Prophecy\Argument\Token\TokenInterface.

◆ scoreArgument()

Prophecy\Argument\Token\InArrayToken::scoreArgument (   $argument)

Return scores 8 score if argument is in array.

Parameters
$argument
Returns
bool|int

Implements Prophecy\Argument\Token\TokenInterface.


The documentation for this class was generated from the following file: