/**
  * Sets the current status of this step
  *
  * @param BatchStatus $status the current status of this step
  *
  * @return $this
  */
 public function setStatus(BatchStatus $status)
 {
     $this->status = $status->getValue();
     return $this;
 }
Exemplo n.º 2
0
 public function testSetValue()
 {
     $batchStatus = new BatchStatus(BatchStatus::UNKNOWN);
     $batchStatus->setValue(BatchStatus::FAILED);
     $this->assertEquals(BatchStatus::FAILED, $batchStatus->getValue());
 }