コード例 #1
0
 public function testSameValueAs()
 {
     $aName = new Name('Testname');
     $sameName = new Name('Testname');
     $otherName = new Name('Other Name');
     $this->assertTrue($aName->sameValueAs($sameName));
     $this->assertFalse($aName->sameValueAs($otherName));
 }
コード例 #2
0
 /**
  * @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);
 }