public function testSameValueAs()
 {
     $aUUID = Uuid::uuid4();
     $anotherUUID = Uuid::uuid4();
     $aWorkflowRunId = new WorkflowRunId($aUUID);
     $equalWorkflowRunId = new WorkflowRunId($aUUID);
     $anotherWorkflowRunId = new WorkflowRunId($anotherUUID);
     $this->assertTrue($aWorkflowRunId->sameValueAs($equalWorkflowRunId));
     $this->assertFalse($aWorkflowRunId->sameValueAs($anotherWorkflowRunId));
 }
 /**
  * Required by EventStore
  *
  * @return string
  */
 protected function getId()
 {
     return $this->workflowRunId->toString();
 }
 /**
  * @param ActionId      $anActionId
  * @param Type          $aType
  * @param Name          $aName
  * @param Arguments     $anArguments
  * @param WorkflowRunId $aWorkflowRunId
  */
 public function __construct(ActionId $anActionId, Type $aType, Name $aName, Arguments $anArguments, WorkflowRunId $aWorkflowRunId)
 {
     $anActionCreated = new ActionCreated(array('actionId' => $anActionId->toString(), 'type' => $aType->toString(), 'name' => $aName->toString(), 'arguments' => $anArguments->toString(), 'workflowRunId' => $aWorkflowRunId->toString()));
     $this->update($anActionCreated);
 }
 public function testWorkflowRunId()
 {
     $this->assertTrue($this->workflowRunId->sameValueAs($this->command->workflowRunId()));
 }
 /**
  * @param WorkflowRunId $aWorkflowRunId
  * @return WorkflowRun|null
  */
 public function getWorkflowRunOfId(WorkflowRunId $aWorkflowRunId)
 {
     return $this->find($aWorkflowRunId->toString());
 }