コード例 #1
0
 /**
  * Get operators.
  *
  * @return ArrayCollection
  */
 public function getRulerOperators()
 {
     return $this->rulerManager->getOperators();
 }
コード例 #2
0
ファイル: Factor.php プロジェクト: ivannis/UlaboxRulerBundle
 /**
  * {@inheritdoc}
  */
 public function buildContext(Context $context, RulerManagerInterface $rulerManager)
 {
     // find operand variables
     $leftOperand = $rulerManager->getVariableByAlias($this->leftOperand);
     $rightOperand = $rulerManager->getVariableByAlias($this->rightOperand);
     $leftOperand->buildContext($context);
     $rightOperand->buildContext($context);
 }