for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of alchemy/resource-component.
*
* (c) Alchemy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @param string|\Alchemy\Resource\ResourceUri $uri A valid resource URI instance or string.
* @return \Alchemy\Resource\ResourceUri
function uri($uri) {
if ($uri instanceof \Alchemy\Resource\ResourceUri) {
return $uri;
}
return \Alchemy\Resource\ResourceUri::fromString($uri);