. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Tree; use function e; /** * ADDRESS_WEB_PAGE := {Size=5:120} * The world wide web page address. */ class AddressWebPage extends AbstractElement { protected const MAXIMUM_LENGTH = 120; protected const PATTERN = 'https?://.*'; /** * 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->valueLink($value); } }