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\Components;
use League\Uri\Interfaces\Pass as PassInterface;
* Value object representing a URI pass component.
* @since 1.0.0
class Pass extends AbstractComponent implements PassInterface
{
* new instance
* @param string|null $data the component value
public function __construct($data = null)
if ($data !== null) {
$data = $this->validateString($data);
$this->data = $this->decodeComponent($data);
}
* @inheritdoc
public function __toString()
return $this->encodePass((string) $this->data);
public function __debugInfo()
return ['pass' => $this->__toString()];