. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; /** * GENERATIONS_OF_DESCENDANTS := {Size=1:4} * The number of generations of descendants included in this transmission. This * value is usually provided when FamilySearch programs build a GEDCOM file for * a patron requesting a download of descendants. */ class GenerationsOfDescendants extends AbstractElement { protected const MAX_LENGTH = 4; /** * Display the value of this type of element. * * @param string $value * @param Tree $tree * * @return string */ public function value(string $value, Tree $tree): string { return $this->valueNumeric($value); } }