Longman\TelegramBot\Commands\Command::isEnabled PHP Method

isEnabled() public method

Check if command is enabled
public isEnabled ( ) : boolean
return boolean
    public function isEnabled()
    {
        return $this->enabled;
    }

Usage Example

 public function testDefaultCommandIsEnabled()
 {
     $this->assertAttributeEquals(true, 'enabled', $this->command_stub);
     $this->assertTrue($this->command_stub->isEnabled());
 }