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