for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* League.Uri (http://uri.thephpleague.com)
*
* @package League.uri
* @author Ignace Nyamagana Butera <[email protected]>
* @copyright 2013-2015 Ignace Nyamagana Butera
* @license https://github.com/thephpleague/uri/blob/master/LICENSE (MIT License)
* @version 4.2.0
* @link https://github.com/thephpleague/uri/
*/
namespace League\Uri\Types;
use InvalidArgumentException;
use League\Uri\Interfaces\UriPart;
* Common methods for Component Value Object
* @since 4.0.0
trait ImmutableComponentTrait
{
use ValidatorTrait;
use TranscoderTrait;
* DEPRECATION WARNING! This method will be removed in the next major point release
* @deprecated deprecated since version 4.2
* Returns whether two UriPart objects represent the same value
* The comparison is based on the getUriComponent method
* @param UriPart $component
* @return bool
public function sameValueAs(UriPart $component)
return $component->getUriComponent() === $this->getUriComponent();
}
* Returns the instance string representation
* with its optional URI delimiters
* @return string
abstract public function getUriComponent();
* @inheritdoc
public function __set($property, $value)
throw new InvalidArgumentException(sprintf('%s is an undefined property', $property));
public function __unset($property)