Programming Language PHP

Namespace Oro\Bundle\WorkflowBundle\Entity

Class WorkflowRestriction

Total Examples 1

1 code examples of PHP Oro\Bundle\WorkflowBundle\Entity\WorkflowRestriction 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;
    }