---
name: "Parse::Method::Signatures::Param"
section: "3pm"
platform: "linux"
package: "libparse-method-signatures-perl"
version: "1.003019-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Parse::Method::Signatures::Param"
---

# Parse::Method::Signatures::Param(3pm)

a parsed parameter from a signature

## NAME

Parse::Method::Signatures::Param - a parsed parameter from a signature

## ATTRIBUTES

All attributes of this class are read-only.

### required

Is this parameter required (true) or optional (false)?

### sigil

The effective sigil ('$', '@' or '%') of this parameter.

### type\_constraints

**Type:** Parse::Method::Signatures::TypeConstraint

**Predicate:** has\_type\_constraints

Representation of the type constraint for this parameter. Most commonly you will just call "meta\_type\_constraint" and not access this attribute directly.

### default\_value

**Type:** Str

**Predicate:** has\_default\_value

A string that should be eval'd or injected to get the default value for this parameter. For example:

```
 $name = 'bar'
```

Would give a default\_value of "'bar'".

### constraints

**Type:** ArrayRef\[Str\]

**Predicate:** has\_constraints

`"where"` constraints for this type. Each member of the array a the string (including enclosing braces) of the where constraint block.

### param\_traits

**Type:** ArrayRef\[ Tupple\[Str,Str\] \]

**Predicate:** has\_traits

Traits that this parameter is declared to have. For instance

```
 $foo does coerce
```

would have a trait of

```
 ['does', 'coerce']
```

## METHODS

### to\_string

### meta\_type\_constraint

Get the Moose::Meta::TypeConstraint for this parameter. Check first that the type has a type constraint:

```
 $tc = $param->meta_type_constraint if $param->has_type_constraints;
```

## SEE ALSO

Parse::Method::Signatures.

## AUTHORS

Ash Berlin \<ash@cpan.org\>.

Florian Ragwitz \<rafl@debian.org\>.

## LICENSE

Licensed under the same terms as Perl itself.
