Файл: concrete5.7.5.6/concrete/vendor/league/url/src/UrlInterface.php
Строк: 211
<?php
/**
* This file is part of the League.url library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/url/
* @version 3.3.5
* @package League.url
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LeagueUrl;
/**
* A common interface for URL as Value Object
*
* @package League.url
* @since 3.0.0
*/
interface UrlInterface
{
/**
* return the string representation for the current URL
*
* @return string
*/
public function __toString();
/**
* return the string representation for the current URL
* user info
*
* @return string
*/
public function getUserInfo();
/**
* return the string representation for the current URL
* authority part (user, pass, host, port components)
*
* @return string
*/
public function getAuthority();
/**
* return the string representation for the current URL
* including the scheme and the authority parts.
*
* @return string
*/
public function getBaseUrl();
/**
* return the string representation for a relative URL
* relative to another UrlInterface or to the current
* base URL
*
* @param UrlInterface $ref_url
*
* @return string
*/
public function getRelativeUrl(UrlInterface $ref_url = null);
/**
* Compare two Url object and tells whether they can be considered equal
*
* @param LeagueUrlUrlInterface $url
*
* @return boolean
*/
public function sameValueAs(UrlInterface $url);
/**
* Set the URL scheme component
*
* @param string $data
*
* @return self
*/
public function setScheme($data);
/**
* get the URL scheme component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getScheme();
/**
* Set the URL user component
*
* @param string $data
*
* @return self
*/
public function setUser($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getUser();
/**
* Set the URL pass component
*
* @param string $data
*
* @return self
*/
public function setPass($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getPass();
/**
* Set the URL host component
*
* @param string|array|Traversable $data
*
* @return self
*/
public function setHost($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getHost();
/**
* Set the URL port component
*
* @param string|integer $data
*
* @return self
*/
public function setPort($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getPort();
/**
* Set the URL path component
*
* @param string|array|Traversable $data
*
* @return self
*/
public function setPath($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsPathInterface
*/
public function getPath();
/**
* Set the URL query component
*
* @param string|array|Traversable $data
*
* @return self
*/
public function setQuery($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsQueryInterface
*/
public function getQuery();
/**
* Set the URL fragment component
*
* @param string $data
*
* @return self
*/
public function setFragment($data);
/**
* get the URL pass component
*
* @return LeagueUrlComponentsComponentInterface
*/
public function getFragment();
}