src/string/FixedVariableFixedCG.php 1 location
|
@@ 36-44 (lines=9) @@
|
33 |
|
/** |
34 |
|
* @inheritdoc |
35 |
|
*/ |
36 |
|
public function __construct(string $string, int $length = 0) |
37 |
|
{ |
38 |
|
parent::__construct($string, $length); |
39 |
|
|
40 |
|
// Parse internal character groups |
41 |
|
$this->firstFixedCG = FixedCG::fromString($string); |
42 |
|
$this->variableCG = VariableCG::fromString($string); |
43 |
|
$this->lastFixedCG = FixedCG::fromString($string); |
44 |
|
} |
45 |
|
|
46 |
|
/** |
47 |
|
* @inheritdoc |
src/string/VariableFixedCG.php 1 location
|
@@ 32-41 (lines=10) @@
|
29 |
|
/** |
30 |
|
* @inheritdoc |
31 |
|
*/ |
32 |
|
public function __construct(string $string, int $length = 0) |
33 |
|
{ |
34 |
|
$this->size = 2; |
35 |
|
|
36 |
|
parent::__construct($string, $length); |
37 |
|
|
38 |
|
// Parse internal character groups |
39 |
|
$this->variableCG = VariableCG::fromString($string); |
40 |
|
$this->fixedCG = FixedCG::fromString($string); |
41 |
|
} |
42 |
|
|
43 |
|
/** |
44 |
|
* @return bool True if character group is fixed length otherwise false |