forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParameterReflection.php
More file actions
35 lines (25 loc) · 846 Bytes
/
Copy pathParameterReflection.php
File metadata and controls
35 lines (25 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php declare(strict_types = 1);
namespace PHPStan\Reflection;
use PHPStan\Type\Type;
/**
* Reflection for a function/method parameter.
*
* Represents a single parameter in a function or method signature. Each parameter
* has a name, type, and metadata about optionality, variadicity, and pass-by-reference.
*
* The type returned by getType() is the combined PHPDoc + native type.
* For separate PHPDoc and native types, see ExtendedParameterReflection.
*
* Part of a ParametersAcceptor which describes a complete function signature.
*
* @api
*/
interface ParameterReflection
{
public function getName(): string;
public function isOptional(): bool;
public function getType(): Type;
public function passedByReference(): PassedByReference;
public function isVariadic(): bool;
public function getDefaultValue(): ?Type;
}