edde-framework/edde-framework

View on GitHub
.runtime/src/Edde/App/Rest/UserService.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
    declare(strict_types=1);

    namespace Edde\App\Rest;

    use Edde\Api\Http\LazyHostUrlTrait;
    use Edde\Api\Url\IUrl;
    use Edde\Common\Rest\AbstractService;

    class UserService extends AbstractService {
        use LazyHostUrlTrait;

        public function match(IUrl $url): bool {
            return $url->match('~^/api/v1/user$~') !== null;
        }

        public function link($generate, array $parameterList = []) {
            return parent::link('/api/v1/user', $parameterList);
        }
    }