AztecHint

Backed enum for the Aztec Code encoding hint: A (automatic, default) or B (binary).

Table of contents

Namespace: Com\Tecnick\Barcode\Type\Square\Aztec

enum AztecHint: string

Source: src/Type/Square/Aztec/AztecHint.php:35

Backed enum for the Aztec Code encoding hint: A (automatic, default) or B (binary).

Cases

  • Automatic = 'A': Automatic encoding (default).
  • Binary = 'B': Binary encoding.

Methods

fromLoose()

Resolve a loose Aztec hint value to the matching enum case.

Accepts the canonical letter or an enum instance (returned unchanged). Unknown values fall back to Automatic, matching the lenient behavior of Aztec.

public static fromLoose(string|self $value): self

Parameters:

  • $value (string|self): Hint letter or enum case.

Returns: self

Source: src/Type/Square/Aztec/AztecHint.php:52