public function write( $value ): void {
		if ( $value !== $this->value ) {
			$this->emit( GPIO::BEFORE_VALUE_CHANGE_EVENT, [ $this ] );
			$value = boolval( $value ) ? 1 : 0;
			fwrite( $this->fileHandler, "$value", 1 );
			$this->value = $value;
			$this->emit( GPIO::AFTER_VALUE_CHANGE_EVENT, [ $this ] );
		}
	}