setExpression() public méthode

Sets an expression
public setExpression ( string $expr )
$expr string
 /**
  * Parses the value of a node into the model
  * 
  * @param ValueInterface $obj
  * @param Node $node
  * @return void
  */
 private function parseValue(ValueInterface $obj, Node $node)
 {
     $value = $node instanceof Const_ ? $node->value : $node->default;
     if ($value !== null) {
         if ($this->isPrimitive($value)) {
             $obj->setValue($this->getPrimitiveValue($value));
         } else {
             $obj->setExpression($this->getExpression($value));
         }
     }
 }