Longman\TelegramBot\Commands\Command::isEnabled PHP 메소드

isEnabled() 공개 메소드

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

Usage Example

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