- php-fints Bibliothek von 3.7.0 auf 4.0.0 aktualisiert - Parser-Fix: Ignoriert zusätzliche Bank-Felder statt Exception - HKEKA Segmente implementiert (HIEKASv5, HKEKAv5, HIEKAv5) - HKKAA Segmente implementiert (HIKAASv1, HKKAAv1) - GetStatementFromArchive und GetElectronicStatement Actions HINWEIS: HKKAA/HKEKA funktionieren noch nicht mit VR Bank (Fehler "unerwarteter Aufbau wrt DE 2" - Kontoverbindungsformat) Normale Funktionalität (Transaktionsimport) ist nicht betroffen. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
732 B
PHP
46 lines
732 B
PHP
<?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();
|
|
}
|
|
}
|