Menu

## Expression
in package
implements Type

Expression.php : 23

Represents an expression type as described in the PSR-5, the PHPDoc Standard.

##### Tags

psalm-immutable

### Interfaces, Classes and Traits

Type

### Table of Contents

$valueType : Type
__construct() : mixed
  Initializes this representation of an array with the given Type.
__toString() : string
  Returns a rendered output of the Type as it would be used in a DocBlock.
getValueType() : Type
  Returns the value for the keys of this array.

### Properties

#### $valueType

Expression.php : 26
`protected Type $valueType`

### Methods

#### __construct()

Expression.php : 31

Initializes this representation of an array with the given Type.

`public __construct(Type $valueType) : mixed`

##### Parameters

$valueType : Type

##### Return values

mixed —

#### __toString()

Expression.php : 47

Returns a rendered output of the Type as it would be used in a DocBlock.

`public __toString() : string`

##### Return values

string —

#### getValueType()

Expression.php : 39

Returns the value for the keys of this array.

`public getValueType() : Type`

##### Return values

Type —

## Search results