getCast() public method

Gets the matched unary operator from the supplied expression.
public getCast ( CastExpression $expression ) : Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
$expression Pinq\Expressions\CastExpression
return Pinq\Analysis\ITypeOperation | Pinq\Analysis\IMethod
Beispiel #1
0
 public function getCast(O\CastExpression $expression)
 {
     if (isset($this->castOperations[$expression->getCastType()])) {
         return $this->castOperations[$expression->getCastType()];
     }
     return $this->parentType->getCast($expression);
 }