Skip to content

Commit 431c7aa

Browse files
committed
Prototype: add getters
1 parent 8e0e3be commit 431c7aa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Prototype.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ public function __construct(ReturnInfo $returnType, ParameterInfo ...$parameters
7777
}
7878
}
7979

80+
/**
81+
* @return ParameterInfo[]
82+
*/
83+
public function getParameterInfo() : array{
84+
return $this->parameters;
85+
}
86+
87+
public function getRequiredParameterCount() : int{
88+
return $this->requiredParameterCount;
89+
}
90+
91+
public function getReturnInfo() : ReturnInfo{
92+
return $this->returnInfo;
93+
}
94+
8095
public function isSatisfiedBy(Prototype $callable) : bool{
8196
if(!$this->returnInfo->isSatisfiedBy($callable->returnInfo)){
8297
return false;

0 commit comments

Comments
 (0)