Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Contracts\Exposure;
6
7use Stewart\Contracts\EventStream;
8use Stewart\Contracts\Exception\ExposureException;
9use Stewart\Contracts\Exposure\Command\ButtonPress;
10
11interface ExposedButton extends ExposedEntity
12{
13    public function getConfig(): ButtonConfig;
14
15    /** @throws ExposureException */
16    public function updateConfig(ButtonConfig $config): void;
17
18    /** @return EventStream<ButtonPress> */
19    public function watchCommands(): EventStream;
20}