steeffeen/FancyManiaLinks

View on GitHub
FML/Types/Linkable.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace FML\Types;

/**
 * Interface for Elements with url attributes
 *
 * @author    steeffeen <mail@steeffeen.com>
 * @copyright FancyManiaLinks Copyright © 2017 Steffen Schröder
 * @license   http://www.gnu.org/licenses/ GNU General Public License, Version 3
 */
interface Linkable
{

    /**
     * Get the url
     *
     * @api
     * @return string
     */
    public function getUrl();

    /**
     * Set the url
     *
     * @api
     * @param string $url Link url
     * @return static
     */
    public function setUrl($url);

    /**
     * Get the url id to use from Dico
     *
     * @api
     * @return string
     */
    public function getUrlId();

    /**
     * Set the url id to use from Dico
     *
     * @api
     * @param string $urlId Url id
     * @return static
     */
    public function setUrlId($urlId);

    /**
     * Get the manialink
     *
     * @api
     * @return string
     */
    public function getManialink();

    /**
     * Set the manialink
     *
     * @api
     * @param string $manialink Manialink name
     * @return static
     */
    public function setManialink($manialink);

    /**
     * Get the manialink id to use from Dico
     *
     * @api
     * @return string
     */
    public function getManialinkId();

    /**
     * Set the manialink id to use from Dico
     *
     * @api
     * @param string $manialinkId Manialink id
     * @return static
     */
    public function setManialinkId($manialinkId);

}