コード例 #1
0
 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());
 }
コード例 #2
0
ファイル: WorkflowItem.php プロジェクト: Maksold/platform
 /**
  * @param WorkflowTransitionRecord $transitionRecord
  * @return WorkflowItem
  */
 public function addTransitionRecord(WorkflowTransitionRecord $transitionRecord)
 {
     $transitionRecord->setWorkflowItem($this);
     $this->transitionRecords->add($transitionRecord);
     return $this;
 }