<?php


namespace Blockera\Data\ValueAddon\DynamicValue\Fields;


use Blockera\Data\ValueAddon\DynamicValue\Field;

class PostURL extends Field {

	public function theName(): string {

		return 'post-url';
	}

	public function theValue( array $options = [] ): string {

		$permalink = get_permalink();

		if ( ! $permalink ) {

			return '';
		}

		return $permalink;
	}

}
