getExpression() public method

Returns the expression
public getExpression ( ) : string
return string
Ejemplo n.º 1
0
 private function writeValue(ValueInterface $model)
 {
     if ($model->isExpression()) {
         $this->writer->write($model->getExpression());
     } else {
         $value = $model->getValue();
         if ($value instanceof PhpConstant) {
             $this->writer->write($value->getName());
         } else {
             $this->writer->write($this->exportVar($value));
         }
     }
 }