Nwidart\Modules\Module::isStatus PHP 메소드

isStatus() 공개 메소드

Determine whether the given status same with the current module status.
public isStatus ( $status ) : boolean
$status
리턴 boolean
    public function isStatus($status)
    {
        return $this->get('active', 0) === $status;
    }

Usage Example

예제 #1
0
 /** @test */
 public function it_module_status_check()
 {
     $this->assertTrue($this->module->isStatus(1));
     $this->assertFalse($this->module->isStatus(0));
 }