<?php is_string(mixed $value): bool
<?php private function toEnum(mixed $value): IncomeClassificationCategory|ExpenseClassificationCategory|null { if (is_string($value)) { return $this->isIncome ? IncomeClassificationCategory::tryFrom($value) : ExpenseClassificationCategory::tryFrom($value);
<?php return null; } if (!is_string($value)) { return $value; }
<?php protected function build(DOMNode $parent, string $nodeName, mixed $nodeValue, $namespace = null): void { if (is_null($nodeValue) || (is_string($nodeValue) && strlen($nodeValue) === 0)) { return; }
<?php protected function buildArray(DOMNode $parent, string $nodeName, array $nodeValue): void { if (is_string(array_key_first($nodeValue))) { $this->processAssocArray($parent, $nodeName, $nodeValue); return; }