public function visitCast(O\CastExpression $expression) { $this->walk($expression->getCastValue()); $this->addTypeOperation($expression, $this->analysis[$expression->getCastValue()]->getCast($expression)); }
public function getCast(O\CastExpression $expression) { if (isset($this->castOperations[$expression->getCastType()])) { return $this->castOperations[$expression->getCastType()]; } return $this->parentType->getCast($expression); }