Menu

## ObjectStateToken
in package
implements TokenInterface

ObjectStateToken.php : 23

Object state-checker token.

##### Tags

author

  Konstantin Kudryashov ever.zet@gmail.com

### Interfaces, Classes and Traits

TokenInterface
  Argument token interface.

### Table of Contents

$comparatorFactory : mixed
$name : mixed
$util : mixed
$value : mixed
__construct() : mixed
  Initializes token.
__toString() : string
  Returns string representation for token.
isLast() : bool
  Returns false.
scoreArgument() : bool|int
  Scores 8 if argument is an object, which method returns expected value.

### Properties

#### $comparatorFactory

ObjectStateToken.php : 28
`private mixed $comparatorFactory`

#### $name

ObjectStateToken.php : 25
`private mixed $name`

#### $util

ObjectStateToken.php : 27
`private mixed $util`

#### $value

ObjectStateToken.php : 26
`private mixed $value`

### Methods

#### __construct()

ObjectStateToken.php : 38

Initializes token.

`public __construct(string $methodName, mixed $value[, null|StringUtil $util = null ][, Factory $comparatorFactory = null ]) : mixed`

##### Parameters

$methodName : string
$value : mixed

  Expected return value

$util : null|StringUtil = null
$comparatorFactory : Factory = null

##### Return values

mixed —

#### __toString()

ObjectStateToken.php : 97

Returns string representation for token.

`public __toString() : string`

##### Return values

string —

#### isLast()

ObjectStateToken.php : 87

Returns false.

`public isLast() : bool`

##### Return values

bool —

#### scoreArgument()

ObjectStateToken.php : 58

Scores 8 if argument is an object, which method returns expected value.

`public scoreArgument(mixed $argument) : bool|int`

##### Parameters

$argument : mixed

##### Return values

bool|int —

## Search results