gossi\codegen\model\ValueInterface::getExpression PHP Méthode

getExpression() public méthode

Returns the expression
public getExpression ( ) : string
Résultat string
    public function getExpression();

Usage Example

 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));
         }
     }
 }