| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class PgObjectSignatureRefBase extends PgObjectRefBase |
||
| 9 | { |
||
| 10 | private $argTypes; |
||
| 11 | |||
| 12 | public static function fromUnqualifiedName(string $name, PgTypeRef ...$argTypes) |
||
| 13 | { |
||
| 14 | $ref = new static(null, $name); |
||
| 15 | $ref->argTypes = $argTypes; |
||
| 16 | return $ref; |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function fromQualifiedName(?string $schemaName, string $name, PgTypeRef ...$argTypes) |
||
| 20 | { |
||
| 21 | $ref = new static($schemaName, $name); |
||
| 22 | $ref->argTypes = $argTypes; |
||
| 23 | return $ref; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return PgTypeRef[] list of argument types |
||
| 28 | */ |
||
| 29 | final public function getArgTypes(): array |
||
| 32 | } |
||
| 33 | } |
||
| 34 |