condExprs = $condExprs; $this->expr = $expr; $this->matchKind = $matchKind; } public function getExpr() : Expr { return $this->expr; } /** * @return Expr[]|null */ public function getCondExprs() : ?array { // internally checked by PHPStan, cannot be empty array if ($this->condExprs === []) { return null; } return $this->condExprs; } /** * @return MatchKind::* */ public function getMatchKind() : string { return $this->matchKind; } /** * @param MatchKind::* $matchKind */ public function equalsMatchKind(string $matchKind) : bool { return $this->matchKind === $matchKind; } }