예제 #1
0
 /**
  * @return boolean
  */
 public function isStopped()
 {
     if (is_int($this->status)) {
         return $this->status == Status::STATUS_STOPPED;
     } else {
         return $this->status->isStopped();
     }
 }
예제 #2
0
 /**
  * @test
  */
 public function shouldConstructUsingStatusInstance()
 {
     $state = new Status(Status::STATUS_STOPPED);
     $status = new Status($state);
     $this->assertTrue($status->isStopped());
 }
예제 #3
0
 /**
  * @return boolean
  */
 public function isStopped()
 {
     return $this->status->isStopped();
 }