Commit aa29430f authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): add phpdoc and also support string urns

1 merge request!262[Sprint/InterestingIguana] (fix): resolve comments by urn
Pipeline #70808435 passed with stages
in 7 minutes and 18 seconds
......@@ -272,8 +272,16 @@ class Manager
return null;
}
public function getByUrn(Urn $urn)
/**
* @param string|Urn $urn
* @return Comment|null
* @throws \Exception
*/
public function getByUrn($urn)
{
if (is_string($urn)) {
$urn = new Urn($urn);
}
$components = explode(':', $urn->getNss());
if (count($components) !== 5) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment