Пример #1
0
 /**
  * @return boolean
  */
 public function isSeeding()
 {
     if (is_int($this->status)) {
         return $this->status == self::STATUS_SEED || $this->status == self::STATUS_SEED_WAIT;
     } else {
         return $this->status->isSeeding();
     }
 }
Пример #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 isSeeding()
 {
     return $this->status->isSeeding();
 }