public function testGetSetWorkflowItem() { $this->assertNull($this->transitionRecord->getWorkflowItem()); $value = new WorkflowItem(); $this->assertEquals($this->transitionRecord, $this->transitionRecord->setWorkflowItem($value)); $this->assertEquals($value, $this->transitionRecord->getWorkflowItem()); }
/** * @param WorkflowTransitionRecord $transitionRecord * @return WorkflowItem */ public function addTransitionRecord(WorkflowTransitionRecord $transitionRecord) { $transitionRecord->setWorkflowItem($this); $this->transitionRecords->add($transitionRecord); return $this; }