/** * @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(); } }
/** * @test */ public function shouldConstructUsingStatusInstance() { $state = new Status(Status::STATUS_STOPPED); $status = new Status($state); $this->assertTrue($status->isStopped()); }
/** * @return boolean */ public function isSeeding() { return $this->status->isSeeding(); }