Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends Expression
Esempio n. 1
0
 public function visitCast(O\CastExpression $expression)
 {
     $this->walk($expression->getCastValue());
     $this->addTypeOperation($expression, $this->analysis[$expression->getCastValue()]->getCast($expression));
 }
Esempio n. 2
0
 public function getCast(O\CastExpression $expression)
 {
     if (isset($this->castOperations[$expression->getCastType()])) {
         return $this->castOperations[$expression->getCastType()];
     }
     return $this->parentType->getCast($expression);
 }