| 1 | <?php |
||
| 18 | class TypeInvocationPrimitive implements PrimitiveInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var TypeNameInterface |
||
| 22 | */ |
||
| 23 | private $name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var ContextInterface |
||
| 27 | */ |
||
| 28 | private $context; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * TypeInvocation constructor. |
||
| 32 | * @param TypeNameInterface $name |
||
| 33 | * @param ContextInterface $context |
||
| 34 | */ |
||
| 35 | public function __construct(TypeNameInterface $name, ContextInterface $context) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return TypeNameInterface |
||
| 43 | */ |
||
| 44 | public function getName(): TypeNameInterface |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return ContextInterface |
||
| 51 | */ |
||
| 52 | public function getContext(): ContextInterface |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function __toString(): string |
||
| 64 | } |
||
| 65 |