PiPHP\GPIO\Interrupt\InterruptWatcher::unregister PHP Method

unregister() public method

public unregister ( PiPHP\GPIO\Pin\InputPinInterface $pin )
$pin PiPHP\GPIO\Pin\InputPinInterface
    public function unregister(InputPinInterface $pin)
    {
        $pinNumber = $pin->getNumber();
        if (isset($this->streams[$pinNumber])) {
            fclose($this->streams[$pinNumber]);
            unset($this->streams[$pinNumber]);
            unset($this->callbacks[$pinNumber]);
            unset($this->pins[$pinNumber]);
        }
    }