Nwidart\Modules\Module::isStatus PHP Méthode

isStatus() public méthode

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

Usage Example

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