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\Schemes;
use League\Uri\Interfaces\Uri;
use League\Uri\Schemes\Generic\AbstractHierarchicalUri;
* Value object representing WS and WSS Uri.
* @since 4.0.0
class Ws extends AbstractHierarchicalUri implements Uri
{
* @inheritdoc
protected static $supportedSchemes = [
'ws' => 80,
'wss' => 443,
];
protected function assertSupportedScheme()
$scheme = $this->getScheme();
if ('' !== $scheme) {
parent::assertSupportedScheme();
}
protected function isValid()
return null === $this->fragment->getContent()
&& $this->isValidGenericUri()
&& $this->isValidHierarchicalUri();