/** * {@inheritdoc} */ public function build(CommandInterface $command) { $uri = sprintf('%s/%s/%s/%s', rtrim($this->getBaseUrl()), $command->getInterface(), $command->getMethod(), $command->getVersion()); return new Uri($uri); }