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

getValue() public méthode

Returns the value
public getValue ( ) : mixed
Résultat mixed
    public function getValue();

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));
         }
     }
 }
All Usage Examples Of gossi\codegen\model\ValueInterface::getValue