Programming Language PHP

Namespace Oro\Bundle\WorkflowBundle\Entity

Class WorkflowRestriction

Method/Function setDefinition

Total Examples 1

1 code examples of PHP Oro\Bundle\WorkflowBundle\Entity\WorkflowRestriction::setDefinition extracted from open source projects

Was this example useful?
0
                                                    /**
     * @return $this
     */
    public function addRestriction(WorkflowRestriction $restriction)
    {
        $restriction->setDefinition($this);
        if ($restriction->getStep()) {
            $restriction->setStep($this->getStepByName($restriction->getStep()->getName()));
        }

        $this->restrictions->add($restriction);

        return $this;
    }
                                            
WorkflowRestriction's Other Methods