public function toggle() { //This will still work if active low $this->pin->getLevel() === Pin::LEVEL_HIGH ? $this->pin->low() : $this->pin->high(); }