- HKEKA v3/v4/v5 Segmente fuer phpFinTS implementiert (VR Bank unterstuetzt kein HKEKP) - GetElectronicStatement Action mit Base64-Erkennung und Quittungscode - PDF-Deduplizierung per MD5 (Bank sendet identische Saldenmitteilungen) - Saldenmitteilungen ohne Auszugsnummer werden uebersprungen - Datums-Validierung: 30.02. (Bank-Konvention) wird auf 28.02. korrigiert - Numerische Sortierung fuer statement_number (CAST statt String-Sort) - Jahr-Filter: statement_year=0 ausgeschlossen - Menue/Button: "Kontoauszuege" -> "Umsaetze" (statements.php zeigt MT940, nicht PDFs) - Redirect nach FinTS-Abruf auf aktuelles Jahr statt year=0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
732 B
PHP
Executable file
46 lines
732 B
PHP
Executable file
<?php
|
|
|
|
namespace Fhp\Syntax;
|
|
|
|
class Bin
|
|
{
|
|
protected string $string;
|
|
|
|
public function __construct(string $string)
|
|
{
|
|
$this->string = $string;
|
|
}
|
|
|
|
/**
|
|
* Sets the binary data.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setData(string $data): static
|
|
{
|
|
$this->string = $data;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the binary data.
|
|
*/
|
|
public function getData(): string
|
|
{
|
|
return $this->string;
|
|
}
|
|
|
|
/**
|
|
* Convert to string.
|
|
*/
|
|
public function toString(): string
|
|
{
|
|
return '@' . strlen($this->string) . '@' . $this->string;
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return $this->toString();
|
|
}
|
|
}
|