| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class EdmAssertTypeExpression extends EdmElement implements IAssertTypeExpression |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var IExpression |
||
| 21 | */ |
||
| 22 | private $operand; |
||
| 23 | /** |
||
| 24 | * @var ITypeReference |
||
| 25 | */ |
||
| 26 | private $type; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Initializes a new instance of the EdmAssertTypeExpression class. |
||
| 30 | * @param IExpression $operand Expression for which the type is asserted. |
||
| 31 | * @param ITypeReference $type Type to assert. |
||
| 32 | */ |
||
| 33 | public function __construct(IExpression $operand, ITypeReference $type) |
||
| 34 | { |
||
| 35 | $this->operand = $operand; |
||
| 36 | $this->type = $type; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | public function getOperand(): IExpression |
||
| 43 | { |
||
| 44 | return $this->operand; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | public function getType(): ITypeReference |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @inheritDoc |
||
| 57 | */ |
||
| 58 | public function getExpressionKind(): ExpressionKind |
||
| 61 | } |
||
| 62 | } |