Вход Регистрация
Файл: concrete5.7.5.6/concrete/vendor/league/url/src/Url.php
Строк: 147
<?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 class to manipulate URLs
 *
 *  @package League.url
 *  @since  1.0.0
 */
class Url extends AbstractUrl
{
    
/**
     * The Constructor
     * @param ComponentsScheme         $scheme   The URL Scheme component
     * @param ComponentsUser           $user     The URL User component
     * @param ComponentsPass           $pass     The URL Pass component
     * @param ComponentsHostInterface  $host     The URL Host component
     * @param ComponentsPort           $port     The URL Port component
     * @param ComponentsPathInterface  $path     The URL Path component
     * @param ComponentsQueryInterface $query    The URL Query component
     * @param ComponentsFragment       $fragment The URL Fragment component
     */
    
protected function __construct(
        
ComponentsScheme $scheme,
        
ComponentsUser $user,
        
ComponentsPass $pass,
        
ComponentsHostInterface $host,
        
ComponentsPort $port,
        
ComponentsPathInterface $path,
        
ComponentsQueryInterface $query,
        
ComponentsFragment $fragment
    
) {
        
$this->scheme   $scheme;
        
$this->user     $user;
        
$this->pass     $pass;
        
$this->host     $host;
        
$this->port     $port;
        
$this->path     $path;
        
$this->query    $query;
        
$this->fragment $fragment;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setScheme($data)
    {
        
$this->scheme->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getScheme()
    {
        return 
$this->scheme;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setUser($data)
    {
        
$this->user->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getUser()
    {
        return 
$this->user;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setPass($data)
    {
        
$this->pass->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getPass()
    {
        return 
$this->pass;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setHost($data)
    {
        
$this->host->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getHost()
    {
        return 
$this->host;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setPort($data)
    {
        
$this->port->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getPort()
    {
        return 
$this->port;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setPath($data)
    {
        
$this->path->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getPath()
    {
        return 
$this->path;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setQuery($data)
    {
        
$this->query->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getQuery()
    {
        return 
$this->query;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setFragment($data)
    {
        
$this->fragment->set($data);

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getFragment()
    {
        return 
$this->fragment;
    }
}
Онлайн: 0
Реклама