<?php

declare (strict_types=1);
namespace PoPCMSSchema\SchemaCommons\CMS;

/** @internal */
interface CMSHelperServiceInterface
{
    /**
     * Get the path from the URL if it starts with the home URL, of `null` otherwise
     */
    public function getLocalURLPath(string $url) : ?string;
    /**
     * Indicate if the URL belongs to the current domain,
     * whether http or https
     */
    public function isCurrentDomain(string $url) : bool;
}
