Menu

## TypeToken
in package
implements TokenInterface

TypeToken.php : 21

Value type token.

##### Tags

author

  Konstantin Kudryashov ever.zet@gmail.com

### Interfaces, Classes and Traits

TokenInterface
  Argument token interface.

### Table of Contents

$type : mixed
__construct() : mixed
__toString() : string
  Returns string representation for token.
isLast() : bool
  Returns false.
scoreArgument() : bool|int
  Scores 5 if argument has the same type this token was constructed with.

### Properties

#### $type

TypeToken.php : 23
`private mixed $type`

### Methods

#### __construct()

TypeToken.php : 28
`public __construct(string $type) : mixed`

##### Parameters

$type : string

##### Return values

mixed —

#### __toString()

TypeToken.php : 72

Returns string representation for token.

`public __toString() : string`

##### Return values

string —

#### isLast()

TypeToken.php : 62

Returns false.

`public isLast() : bool`

##### Return values

bool —

#### scoreArgument()

TypeToken.php : 47

Scores 5 if argument has the same type this token was constructed with.

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

##### Parameters

$argument :

##### Return values

bool|int —

## Search results