Файл: concrete5.7.5.6/concrete/vendor/league/url/src/Components/SegmentInterface.php
Строк: 79
<?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 LeagueUrlComponents;
/**
* A common interface for URL segment like component
*
* @package League.url
* @since 3.0.0
*/
interface SegmentInterface extends ComponentArrayInterface
{
/**
* Append data to the component
*
* @param mixed $data the data can be a array, a Traversable or a string
* @param string $whence where the data should be prepended to
* @param integer $whence_index the recurrence index of $whence
*
* @return void
*/
public function append($data, $whence = null, $whence_index = null);
/**
* Prepend data to the component
*
* @param mixed $data the data can be a array, a Traversable or a string
* @param string $whence where the data should be prepended to
* @param integer $whence_index the recurrence index of $whence
*
* @return void
*/
public function prepend($data, $whence = null, $whence_index = null);
/**
* Remove part of the component
*
* @param mixed $data the data can be a array, a Traversable or a string
*
* @return void
*/
public function remove($data);
}